don't allow fjoining users that aren't in the channel

This commit is contained in:
jacob1 2015-04-18 21:27:16 -04:00
parent abbca6d167
commit c55b6703c5

View File

@ -1357,7 +1357,7 @@ def fjoin(cli, nick, chan, rest):
continue continue
ul = list(var.USERS.keys()) ul = list(var.USERS.keys())
ull = [u.lower() for u in ul] ull = [u.lower() for u in ul]
if tojoin.lower() not in ull: if tojoin.lower() not in ull or not var.USERS[tojoin]["inchan"]:
if not is_fake_nick(tojoin) or not botconfig.DEBUG_MODE: if not is_fake_nick(tojoin) or not botconfig.DEBUG_MODE:
if not noticed: # important if not noticed: # important
cli.msg(chan, nick+(": You may only fjoin "+ cli.msg(chan, nick+(": You may only fjoin "+