Browse Source

fixed bug in PART/QUIT/KICK handlers

master
jcao219 14 years ago
parent
commit
9acb95727f
  1. 8
      var.py
  2. 7
      wolfgame.py

8
var.py

@ -1,11 +1,11 @@ @@ -1,11 +1,11 @@
PING_WAIT = 300 # Seconds
MINIMUM_WAIT = 0 # debug, change to 60 for normal
EXTRA_WAIT = 0
MINIMUM_WAIT = 60 # debug, change to 60 for normal
EXTRA_WAIT = 20
MAXIMUM_WAITED = 2 # limit for amount of !wait's
MAX_SHOTS = 2
DRUNK_SHOTS_MULTIPLIER = 3
NIGHT_TIME_LIMIT = 0
DAY_TIME_LIMIT = 0
NIGHT_TIME_LIMIT = 90
DAY_TIME_LIMIT = 333
START_WITH_DAY = False
# HIT MISS SUICIDE

7
wolfgame.py

@ -527,9 +527,10 @@ def leave(cli, what, nick): @@ -527,9 +527,10 @@ def leave(cli, what, nick):
cmd("!leave")(lambda cli, nick, *rest: leave(cli, "!leave", nick))
cmd("!quit")(lambda cli, nick, *rest: leave(cli, "!quit", nick))
hook("part")(lambda cli, prefix, nick, *rest: leave(cli, "part", nick))
hook("quit")(lambda cli, prefix, nick, *rest: leave(cli, "quit", nick))
hook("kick")(lambda cli, prefix, nick, *rest: leave(cli, "kick", nick))
#Functions decorated with hook do not parse the nick by default
hook("part")(lambda cli, nick, *reset: leave(cli, "part", parse_nick(nick)[0]))
hook("quit")(lambda cli, nick, *rest: leave(cli, "quit", parse_nick(nick)[0]))
hook("kick")(lambda cli, nick, *rest: leave(cli, "kick", parse_nick(nick)[0]))

Loading…
Cancel
Save