Allow argument 'who' to the new ircstatus command.
This commit is contained in:
parent
721572ac4a
commit
e08cb2bb48
1 changed files with 9 additions and 9 deletions
|
|
@ -931,13 +931,13 @@ class CmdIRCStatus(COMMAND_DEFAULT_CLASS):
|
||||||
|
|
||||||
If not given arguments, will return a list of all bots (like
|
If not given arguments, will return a list of all bots (like
|
||||||
@irc2chan/list). The 'ping' argument will ping the IRC network to
|
@irc2chan/list). The 'ping' argument will ping the IRC network to
|
||||||
see if the connection is still responsive. The 'users' argument
|
see if the connection is still responsive. The 'nicklist' argument
|
||||||
will return a list of users on the remote IRC channel. Finally,
|
(aliases are 'who' and 'users') will return a list of users on the
|
||||||
'reconnect' will force the client to disconnect and reconnect
|
remote IRC channel. Finally, 'reconnect' will force the client to
|
||||||
again. This may be a last resort if the client has silently lost
|
disconnect and reconnect again. This may be a last resort if the
|
||||||
connection (this may happen if the remote network experience
|
client has silently lost connection (this may happen if the remote
|
||||||
network issues). During the reconnection messages sent to either
|
network experience network issues). During the reconnection
|
||||||
channel will be lost.
|
messages sent to either channel will be lost.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
key = "@ircstatus"
|
key = "@ircstatus"
|
||||||
|
|
@ -956,7 +956,7 @@ class CmdIRCStatus(COMMAND_DEFAULT_CLASS):
|
||||||
self.msg("Usage: @ircstatus [#dbref ping||nicklist||reconnect]")
|
self.msg("Usage: @ircstatus [#dbref ping||nicklist||reconnect]")
|
||||||
return
|
return
|
||||||
botname, option = args
|
botname, option = args
|
||||||
if option not in ("ping", "users", "reconnect", "nicklist"):
|
if option not in ("ping", "users", "reconnect", "nicklist", "who"):
|
||||||
self.msg("Not a valid option.")
|
self.msg("Not a valid option.")
|
||||||
return
|
return
|
||||||
matches = None
|
matches = None
|
||||||
|
|
@ -974,7 +974,7 @@ class CmdIRCStatus(COMMAND_DEFAULT_CLASS):
|
||||||
# check connection by sending outself a ping through the server.
|
# check connection by sending outself a ping through the server.
|
||||||
self.caller.msg("Pinging through %s." % chtext)
|
self.caller.msg("Pinging through %s." % chtext)
|
||||||
ircbot.ping(self.caller)
|
ircbot.ping(self.caller)
|
||||||
elif option in ("users", "nicklist"):
|
elif option in ("users", "nicklist", "who"):
|
||||||
# retrieve user list. The bot must handles the echo since it's
|
# retrieve user list. The bot must handles the echo since it's
|
||||||
# an asynchronous call.
|
# an asynchronous call.
|
||||||
self.caller.msg("Requesting nicklist from %s (%s:%s)." % (channel, network, port))
|
self.caller.msg("Requesting nicklist from %s (%s:%s)." % (channel, network, port))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue