From 7dfdef787a38314b37a33637e657b17b83e16b82 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 10 Sep 2003 18:52:12 +0000 Subject: [PATCH] Made the bot not respond to himself when he gets something that's not a command. --- src/MiscCommands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MiscCommands.py b/src/MiscCommands.py index 943ca790e..c47217049 100755 --- a/src/MiscCommands.py +++ b/src/MiscCommands.py @@ -45,6 +45,7 @@ import textwrap import conf import debug import utils +import world import ircmsgs import ircutils import privmsgs @@ -55,7 +56,7 @@ class MiscCommands(callbacks.Privmsg): # This exists to be able to respond to attempts to command the bot # with a "That's not a command!" if the proper conf.variable is set. callbacks.Privmsg.doPrivmsg(self, irc, msg) - if conf.replyWhenNotCommand: + if conf.replyWhenNotCommand and msg.nick != irc.nick: s = callbacks.addressed(irc.nick, msg) if s: tokens = callbacks.tokenize(s)