Using 'was url)' caused problems since () are legal characters in a url.

Switched to 'was <url>)' for tinysnarf replies.
This commit is contained in:
James Vega 2003-11-07 14:59:33 +00:00
parent 25aacc3cd7
commit c32939ffb1

View File

@ -137,7 +137,7 @@ class URL(callbacks.Privmsg, plugins.Toggleable, plugins.ChannelDBHandler):
cursor.execute("""INSERT INTO tinyurls VALUES
(NULL, %s, %s)""", id, tinyurl)
if self.toggles.get('tinyreply', channel=msg.args[0]):
irc.queueMsg(callbacks.reply(msg, '%s (was %s)' %
irc.queueMsg(callbacks.reply(msg, '%s (was <%s>)' %
(ircutils.bold(tinyurl), url), prefixName=False))
key = (msg.nick, channel)
self.nextMsgs.setdefault(key, []).append((url, added))