mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
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:
parent
6382e75820
commit
6cf0005abe
@ -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.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user