Example #1
0
 def dosay(self, printto, txt):
     if cfg['udpparty'] and partyline.is_on(printto):
         partyline.say_nick(printto, txt)
         return
     bot = fleet.byname(cfg['udpbot'])
     if not bot.jabber and not cfg['nolimiter']:
         time.sleep(3)
     bot.say(printto, txt)
     for i in self.loggers:
         i.log(printto, txt)
Example #2
0
 def dosay(self, printto, txt):
     if cfg['tcpparty'] and partyline.is_on(printto):
         partyline.say_nick(printto, txt)
         return
     bot = fleet.getmainbot()
     if not bot.jabber and not bot.cfg['nolimiter']:
         time.sleep(3)
     bot.say(printto, txt)
     for i in self.loggers:
         i.log(printto, txt)
Example #3
0
def handle_powernick(bot, ievent):
    global state
    nick = ievent.nick
    if not partyline.is_on(nick):
        ievent.reply('%s is not joined on the partylist .. make a dcc chat\
 connection to the bot' % nick)
        return
    username = users.getname(ievent.userhost)
    state['nicks'][username] = nick
    state.save()
    ievent.reply('powernick set to %s' % nick)
Example #4
0
def handle_powernick(bot, ievent):
    global state
    nick = ievent.nick
    if not partyline.is_on(nick):
        ievent.reply('%s is not joined on the partylist .. make a dcc chat\
 connection to the bot' % nick)
        return
    username = users.getname(ievent.userhost)
    state['nicks'][username] = nick
    state.save()
    ievent.reply('powernick set to %s' % nick)