Make Dunno use standardSubstitute

This commit is contained in:
Daniel Berlin 2003-11-02 03:18:39 +00:00
parent 51f80108c4
commit d557443883

View File

@ -87,7 +87,7 @@ class Dunno(callbacks.Privmsg):
LIMIT 1""") LIMIT 1""")
if cursor.rowcount != 0: if cursor.rowcount != 0:
dunno = cursor.fetchone()[0] dunno = cursor.fetchone()[0]
dunno = dunno.replace('$who', msg.nick) dunno = plugins.standardSubstitute(irc, msg, dunno)
irc.reply(msg, dunno, prefixName=False) irc.reply(msg, dunno, prefixName=False)
def add(self, irc, msg, args): def add(self, irc, msg, args):