Put "prefixName=False" in a bunch of the irc.reply()s so that things like

dunnos wouldn't look stupid.
This commit is contained in:
Daniel DiPaolo 2003-10-22 16:38:46 +00:00
parent 6382e75820
commit 6cf0005abe

View File

@ -208,7 +208,7 @@ class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp):
cursor.execute("""SELECT fact FROM factoids WHERE key = %s""", key) cursor.execute("""SELECT fact FROM factoids WHERE key = %s""", key)
if cursor.rowcount == 0: if cursor.rowcount == 0:
text = self._getDunno(msg.nick) text = self._getDunno(msg.nick)
irc.reply(msg, text) irc.reply(msg, text, prefixName=False)
else: else:
fact = cursor.fetchone()[0] fact = cursor.fetchone()[0]
# Update the requested count/requested by for this key # Update the requested count/requested by for this key
@ -219,9 +219,9 @@ class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp):
if type == "action": if type == "action":
irc.queueMsg(ircmsgs.action(ircutils.replyTo(msg), text)) irc.queueMsg(ircmsgs.action(ircutils.replyTo(msg), text))
elif type == "reply": elif type == "reply":
irc.reply(msg, text) irc.reply(msg, text, prefixName=False)
elif type == "define": elif type == "define":
irc.reply(msg, "%s is %s" % (key, text)) irc.reply(msg, "%s is %s" % (key, text), prefixName=False)
else: else:
irc.error(msg, "Spurious type from parseFactoid.") irc.error(msg, "Spurious type from parseFactoid.")