prevent responses from bot nick
parent
29bd55f142
commit
3050bb3abf
|
@ -249,6 +249,8 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||||
|
|
||||||
def process_event(self, c, e):
|
def process_event(self, c, e):
|
||||||
nick = e.source.nick
|
nick = e.source.nick
|
||||||
|
if nick == self.bot_nick:
|
||||||
|
pass
|
||||||
text = e.arguments[0]
|
text = e.arguments[0]
|
||||||
if e.type == 'privmsg' or e.type == 'pubmsg':
|
if e.type == 'privmsg' or e.type == 'pubmsg':
|
||||||
msg_type = 'message'
|
msg_type = 'message'
|
||||||
|
|
Loading…
Reference in New Issue