quote regexp in rank output.

This commit is contained in:
Daniel Folkinshteyn 2010-03-19 16:45:59 -04:00
parent 15a4b45801
commit 1a3d6c3821
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ class MessageParser(callbacks.Plugin, plugins.ChannelDBHandler):
ORDER BY usage_count DESC
LIMIT ?""", (numregexps,))
regexps = cursor.fetchall()
s = [ "#%d %s (%d)" % (i+1, regexp[0], regexp[1]) for i, regexp in enumerate(regexps) ]
s = [ "#%d \"%s\" (%d)" % (i+1, regexp[0], regexp[1]) for i, regexp in enumerate(regexps) ]
irc.reply(", ".join(s))
rank = wrap(rank, ['channel'])