fixed !fquit bug
This commit is contained in:
parent
0b889d5933
commit
69531682f9
24
wolfgame.py
24
wolfgame.py
@ -333,10 +333,10 @@ def fjoin(cli, nick, chan, rest):
|
|||||||
continue
|
continue
|
||||||
ull = [u.lower() for u in var.USERS]
|
ull = [u.lower() for u in var.USERS]
|
||||||
if a.lower() not in ull:
|
if a.lower() not in ull:
|
||||||
if not is_fake_nick(a):
|
if not is_fake_nick(a) and botconfig.DEBUG_MODE:
|
||||||
if not noticed: # important
|
if not noticed: # important
|
||||||
cli.msg(chan, nick+(": You may only fjoin fake people "+
|
cli.msg(chan, nick+(": You may only fjoin "+
|
||||||
"or people in this channel for now."))
|
"people who are in this channel."))
|
||||||
noticed = True
|
noticed = True
|
||||||
continue
|
continue
|
||||||
if not is_fake_nick(a):
|
if not is_fake_nick(a):
|
||||||
@ -352,14 +352,16 @@ def fleave(cli, nick, chan, rest):
|
|||||||
a = a.strip()
|
a = a.strip()
|
||||||
if not a:
|
if not a:
|
||||||
continue
|
continue
|
||||||
pll = [x.lower() for x in var.list_players()]
|
pl = var.list_players()
|
||||||
if a.lower() != botconfig.NICK.lower() and a.lower() in pll:
|
pll = [x.lower() for x in pl]
|
||||||
del_player(cli, a.strip())
|
if a.lower() in pll:
|
||||||
cli.msg(chan, ("\u0002{0}\u0002 has used fleave"+
|
a = pl[pll.index(a.lower())]
|
||||||
" on \u0002{1}\u0002.").format(nick, a.strip()))
|
else:
|
||||||
elif a.lower() not in pll:
|
cli.msg(chan, nick+": That person is not playing.")
|
||||||
cli.msg(chan, nick+": That could not be done.")
|
return
|
||||||
|
cli.msg(chan, ("\u0002{0}\u0002 is forcing"+
|
||||||
|
" \u0002{1}\u0002 to leave.").format(nick, a))
|
||||||
|
del_player(cli, a)
|
||||||
|
|
||||||
|
|
||||||
@cmd("fstart", admin_only=True)
|
@cmd("fstart", admin_only=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user