Posted by Anonymous Fri 2nd Mar 2007 01:05 - Syntax is Python - 59 views
Download | New Post | Modify | Hide line numbers
Description:
supybot roulette mod

  1. games/plugin.py:129:
  2.        if self._rouletteChamber == self._rouletteBullet:
  3.             self._rouletteBullet = random.randrange(0, 6)
  4.             self._rouletteChamber = random.randrange(0, 6)
  5.             if irc.nick in irc.state.channels[channel].ops:
  6.                 #irc.queueMsg(ircmsgs.kick(channel, msg.nick, 'BANG!'))
  7.                 irc.queueMsg(ircmsgs.kill(msg.nick, 'BANG!'))
  8.             else:
  9.                 irc.reply('*BANG* Hey, who put a blank in here?!',
  10.                           prefixNick=False)
  11.             irc.reply('reloads and spins the chambers.', action=True)
  12.         else:
  13.  
  14.  
  15. ircmsgs.py:534:
  16. def kill(nick, msg=None):
  17.     """Returns a KILL to kill nick with the message msg."""
  18.     if conf.supybot.protocols.irc.strictRfc():
  19.         assert isNick(nick), repr(nick)
  20.     if msg and not prefix:
  21.         prefix = msg.prefix
  22.         return IrcMsg(prefix=prefix, command='KILL',
  23.                       args=(nick), msg=msg)
  24.  
  25.  
  26.  

PermaLink to this entry https://pastebin.co.uk/11271
Posted by Anonymous Fri 2nd Mar 2007 01:05 - Syntax is Python - 59 views
Download | New Post | Modify | Hide line numbers

 

Comments: 0