Exemplo n.º 1
0
 ievent.bottype = "irc"
 ievent.nick = nick
 ievent.userhost = userhost
 ievent.auth = userhost
 ievent.channel = channel or ievent.userhost
 ievent.origtxt = res
 ievent.txt = res
 ievent.cmnd = 'DCC'
 ievent.cbtype = 'DCC'
 ievent.bot = self
 ievent.sock = sock
 ievent.speed = 1
 ievent.isdcc = True
 ievent.msg = True
 logging.debug("%s - dcc - constructed event" % self.cfg.name)
 ievent.bind()
 if ievent.hascc():
     ievent.iscommand = True
     ievent.showall = True
     ievent.nodispatch = False
     ievent.bind()
     self.put(ievent)
     continue
 elif ievent.txt[0] == "@":
     partyline.say_broadcast_notself(ievent.nick, "[%s] %s" % (ievent.nick, ievent.txt))
     q = Queue.Queue()
     ievent.queues = [q]
     ievent.txt = ievent.txt[1:]
     self.doevent(ievent)
     result = waitforqueue(q, 3000)
     if result:
Exemplo n.º 2
0
 ievent.printto = sock
 ievent.bottype = "irc"
 ievent.nick = nick
 ievent.userhost = userhost
 ievent.auth = userhost
 ievent.channel = channel or ievent.userhost
 ievent.origtxt = res
 ievent.txt = res
 ievent.cmnd = 'DCC'
 ievent.cbtype = 'DCC'
 ievent.bot = self
 ievent.sock = sock
 ievent.speed = 1
 ievent.isdcc = True
 ievent.msg = True
 ievent.bind(self)
 logging.debug("%s - dcc - constructed event" % self.name)
 if ievent.txt[0] == "!":
     self.doevent(ievent)
     continue
 elif ievent.txt[0] == "@":
     partyline.say_broadcast_notself(ievent.nick, "[%s] %s" % (ievent.nick, ievent.txt))
     q = Queue.Queue()
     ievent.queues = [q]
     ievent.txt = ievent.txt[1:]
     self.doevent(ievent)
     result = waitforqueue(q, 3000)
     if result:
         for i in result:
             partyline.say_broadcast("[bot] %s" % i)
     continue
Exemplo n.º 3
0
 ievent.nick = nick
 ievent.userhost = userhost
 ievent.auth = userhost
 ievent.channel = channel or ievent.userhost
 ievent.origtxt = res
 ievent.txt = res
 ievent.cmnd = 'DCC'
 ievent.cbtype = 'DCC'
 ievent.bot = self
 ievent.sock = sock
 ievent.speed = 1
 ievent.isdcc = True
 ievent.msg = True
 logging.debug("%s - dcc - constructed event" % self.cfg.name)
 ievent.makeoptions()
 ievent.bind()
 if ievent.hascc():
     ievent.iscommand = True
     ievent.showall = True
     ievent.nodispatch = False
     ievent.bind()
     self.put(ievent)
     continue
 elif ievent.txt[0] == "@":
     partyline.say_broadcast_notself(ievent.nick, "[%s] %s" % (ievent.nick, ievent.txt))
     q = Queue.Queue()
     ievent.queues = [q]
     ievent.txt = ievent.txt[1:]
     self.doevent(ievent)
     result = waitforqueue(q, 3000)
     if result: