Browse Source

(finally) make voice/devoice/quiet less weird

master
jcao219 13 years ago
parent
commit
d3b5b10e84
  1. 6
      modules/wolfgame.py

6
modules/wolfgame.py

@ -126,7 +126,7 @@ def mass_mode(cli, md): @@ -126,7 +126,7 @@ def mass_mode(cli, md):
ei = 4 # len(z)
# Now z equal something like [('+v', '-v'), ('asdf', 'wobosd')]
arg1 = "".join(z[0])
arg2 = " ".join(z[1]) + " " + " ".join([x+"!*@*" for x in z[1]])
arg2 = " ".join(z[1]) # + " " + " ".join([x+"!*@*" for x in z[1]])
cli.mode(botconfig.CHANNEL, arg1, arg2)
@ -154,7 +154,7 @@ def reset(cli): @@ -154,7 +154,7 @@ def reset(cli):
for plr in var.list_players():
cmodes.append(("-v", plr))
for deadguy in var.DEAD:
cmodes.append(("-q", deadguy))
cmodes.append(("-q", deadguy+"!*@*"))
mass_mode(cli, cmodes)
var.DEAD = []
@ -845,7 +845,7 @@ def del_player(cli, nick, forced_death = False, devoice = True): @@ -845,7 +845,7 @@ def del_player(cli, nick, forced_death = False, devoice = True):
if var.PHASE != "join" and ret:
# Died during the game, so quiet!
if not is_fake_nick(nick):
cmode.append(("+q", nick))
cmode.append(("+q", nick+"!*@*"))
mass_mode(cli, cmode)
if nick not in var.DEAD:
var.DEAD.append(nick)

Loading…
Cancel
Save