def handle_ievent(self, ievent): """ check for callbacks, call Irc method. """ try: # call parent method Irc.handle_ievent(self, ievent) # check for callbacks if ievent.cmnd == 'JOIN' or ievent.msg: if ievent.nick.lower() in self.nicks401: self.nicks401.remove(ievent.nick.lower()) i = Ircevent() i.copyin(ievent) i.bot = self i.sock = self.sock callbacks.check(self, i) except: handle_exception()
res = strippedtxt(res.strip()) chan = checkchan(self, res) if chan != None: (channel, res) = chan else: channel = nick # create ircevent ievent = Ircevent() ievent.nick = nick ievent.userhost = userhost ievent.channel = channel ievent.origtxt = res ievent.txt = res ievent.cmnd = 'DCC' ievent.bot = self ievent.sock = sock ievent.speed = 1 ievent.isdcc = True # check if its a command if so dispatch if ievent.txt[0] == "!": ievent.txt = ievent.txt[1:] plugins.trydispatch(self, ievent) continue elif ievent.txt[0] == "@": # command is broadcast so send response to the paryline # members partyline.say_broadcast_notself( ievent.nick, "[%s] %s" % (ievent.nick, ievent.txt)) # make queue and run trydispatch to see if command has # fired q = Queue.Queue()
res = strippedtxt(res.strip()) chan = checkchan(self, res) if chan != None: (channel, res) = chan else: channel = nick # create ircevent ievent = Ircevent() ievent.nick = nick ievent.userhost = userhost ievent.channel = channel ievent.origtxt = res ievent.txt = res ievent.cmnd = 'DCC' ievent.bot = self ievent.sock = sock ievent.speed = 1 ievent.isdcc = True # check if its a command if so dispatch if ievent.txt[0] == "!": ievent.txt = ievent.txt[1:] plugins.trydispatch(self, ievent) continue elif ievent.txt[0] == "@": # command is broadcast so send response to the paryline # members partyline.say_broadcast_notself(ievent.nick, "[%s] %s" % (ievent.nick, ievent.txt)) # make queue and run trydispatch to see if command has # fired q = Queue.Queue() ievent.queues = [q]