chiark
/
gitweb
/
~matthewv
/
irc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add the help command back to #chiarks servus instance; sort the output from the list...
[irc.git]
/
commands.py
diff --git
a/commands.py
b/commands.py
index 4bdc45ce01dcc632ae861a4194ced4a9f5c48aed..eac4bc3ce0ee50ccdef0ab088675c27742764b26 100644
(file)
--- a/
commands.py
+++ b/
commands.py
@@
-280,8
+280,11
@@
def disconnq(bot, cmd, nick, conn, public):
bot.disconnect(msg="Be right back.")
### list keys of a dictionary
bot.disconnect(msg="Be right back.")
### list keys of a dictionary
-def listkeysq(bot, cmd, nick, conn, public, dict):
- bot.automsg(public,nick,string.join(dict.keys()))
+def listkeysq(bot, cmd, nick, conn, public, dict, sort=False):
+ d=dict.keys()
+ if sort:
+ d.sort()
+ bot.automsg(public,nick,string.join(d))
### rot13 text (yes, I could have typed out the letters....)
### also "foo".encode('rot13') would have worked
### rot13 text (yes, I could have typed out the letters....)
### also "foo".encode('rot13') would have worked