Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
204
Issues
204
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
efc7b22b
Commit
efc7b22b
authored
Sep 11, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
You can now kick ANYONE (even with a space), and have a space in your nick. fixed
#1803
parent
2a5635c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
11 deletions
+30
-11
src/gui.py
src/gui.py
+30
-11
No files found.
src/gui.py
View file @
efc7b22b
...
...
@@ -20,9 +20,10 @@ from os.path import isfile
from
time
import
sleep
import
sys
import
os
import
re
import
sys
import
shlex
import
curses
import
webbrowser
...
...
@@ -760,7 +761,11 @@ class Gui(object):
"""
# TODO
return
args
=
arg
.
split
()
# check shlex here
try
:
args
=
shlex
.
split
(
arg
)
except
ValueError
as
error
:
return
self
.
add_message_to_room
(
self
.
current_room
(),
_
(
"Error: %s"
)
%
(
error
))
room
=
self
.
current_room
()
if
len
(
args
)
!=
1
:
self
.
add_message_to_room
(
room
,
_
(
'whois command takes exactly one argument'
))
...
...
@@ -809,7 +814,10 @@ class Gui(object):
"""
/kick <nick> [reason]
"""
args
=
arg
.
split
()
try
:
args
=
shlex
.
split
(
arg
)
except
ValueError
as
error
:
return
self
.
add_message_to_room
(
self
.
current_room
(),
_
(
"Error: %s"
)
%
(
error
))
if
len
(
args
)
<
1
:
self
.
command_help
(
'kick'
)
return
...
...
@@ -980,7 +988,10 @@ class Gui(object):
"""
/ignore <nick>
"""
args
=
arg
.
split
()
try
:
args
=
shlex
.
split
(
arg
)
except
ValueError
as
error
:
return
self
.
add_message_to_room
(
self
.
current_room
(),
_
(
"Error: %s"
)
%
(
error
))
if
len
(
args
)
!=
1
:
self
.
command_help
(
'ignore'
)
return
...
...
@@ -1000,7 +1011,10 @@ class Gui(object):
"""
/unignore <nick>
"""
args
=
arg
.
split
()
try
:
args
=
shlex
.
split
(
arg
)
except
ValueError
as
error
:
return
self
.
add_message_to_room
(
self
.
current_room
(),
_
(
"Error: %s"
)
%
(
error
))
if
len
(
args
)
!=
1
:
self
.
command_help
(
'unignore'
)
return
...
...
@@ -1065,7 +1079,10 @@ class Gui(object):
"""
/query <nick> [message]
"""
args
=
arg
.
split
()
try
:
args
=
shlex
.
split
(
arg
)
except
ValueError
as
error
:
return
self
.
add_message_to_room
(
self
.
current_room
(),
_
(
"Error: %s"
)
%
(
error
))
if
len
(
args
)
<
1
:
return
nick
=
args
[
0
]
...
...
@@ -1085,13 +1102,12 @@ class Gui(object):
"""
/topic [new topic]
"""
args
=
arg
.
split
()
room
=
self
.
current_room
()
if
len
(
args
)
==
0
:
if
not
arg
.
strip
()
:
self
.
add_message_to_room
(
room
,
_
(
"The subject of the room is: %s"
)
%
room
.
topic
)
return
subject
=
' '
.
join
(
args
)
if
not
room
.
joined
or
room
.
name
==
"Info"
:
subject
=
arg
if
not
room
.
joined
or
room
.
name
==
"Info"
and
not
room
.
jid
:
return
muc
.
change_subject
(
self
.
xmpp
,
room
.
name
,
subject
)
...
...
@@ -1145,7 +1161,10 @@ class Gui(object):
"""
/nick <nickname>
"""
args
=
arg
.
split
()
try
:
args
=
shlex
.
split
(
arg
)
except
ValueError
as
error
:
return
self
.
add_message_to_room
(
self
.
current_room
(),
_
(
"Error: %s"
)
%
(
error
))
if
len
(
args
)
!=
1
:
return
nick
=
args
[
0
]
...
...
louiz’
@louiz
mentioned in issue
#2019 (closed)
·
Aug 21, 2018
mentioned in issue
#2019 (closed)
mentioned in issue #2019
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment