Beauty is in the eye of the tiger

This commit is contained in:
Vgr E. Barry 2016-11-15 20:37:40 -05:00
parent 360204bf43
commit 3e61e9ec6a

View File

@ -486,15 +486,14 @@ def join_chan(cli, rawnick, chan, account=None, realname=None):
ch.state = channels._States.Joined
user = users._add(cli, nick=rawnick, realname=realname, account=account) # FIXME
ch.users.add(user)
user.channels[ch] = set()
if user is users.Bot:
ch.mode()
ch.mode(Features["CHANMODES"][0])
ch.who()
ch.users.add(user)
user.channels[ch] = set()
Event("chan_join", {}).dispatch(var, ch, user)
### PART handling