diff options
author | Adam <Adam@anope.org> | 2013-06-19 18:59:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-06-19 19:03:56 -0400 |
commit | 5ac1e9175d90fad5feaf235dfe225ddffc47f257 (patch) | |
tree | 729e5c1b34e2c23f1c5cdba427e52958b1b17ff0 /modules/protocol/unreal.cpp | |
parent | 5695c9e079278e74692d55581769745c833bc284 (diff) |
Set vhosts when users id to an account (and not a nick), add account arg to user ctor to ease handling users who connect already identified
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r-- | modules/protocol/unreal.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index fa6dc15ed..5e6534409 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -803,24 +803,21 @@ struct IRCDMessageNick : IRCDMessage return; } - User *user = new User(params[0], params[3], params[4], vhost, ip, s, params[10], user_ts, params[7]); - NickAlias *na = NULL; if (params[6] == "0") ; else if (params[6].is_pos_number_only()) { - if (convertTo<time_t>(params[6]) == user->signon) - na = NickAlias::Find(user->nick); + if (convertTo<time_t>(params[6]) == user_ts) + na = NickAlias::Find(params[0]); } else { na = NickAlias::Find(params[6]); } - if (na) - user->Login(na->nc); + new User(params[0], params[3], params[4], vhost, ip, s, params[10], user_ts, params[7], "", na ? *na->nc : NULL); } else source.GetUser()->ChangeNick(params[0]); |