diff options
author | Adam <Adam@anope.org> | 2012-10-25 04:30:22 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-25 04:30:22 -0400 |
commit | e5efe42ecbb1b84837af5f76f09b7c8ab9d4248d (patch) | |
tree | 1c3e04af2c16e2f261b68dd491b72c97a27367e7 /modules/protocol/unreal.cpp | |
parent | 10e21bfedaa5aea8a3b3565b596de2dd25230f53 (diff) |
Fixed showing users from the right server on unreal/bahamut
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r-- | modules/protocol/unreal.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index 25f030535..c22bf42b1 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -790,8 +790,15 @@ struct IRCDMessageNick : IRCDMessage vhost.clear(); time_t user_ts = params[2].is_pos_number_only() ? convertTo<time_t>(params[2]) : Anope::CurTime; + + Server *s = Server::Find(params[5]); + if (s == NULL) + { + Log(LOG_DEBUG) << "User " << params[0] << " introduced from nonexistant server " << params[5] << "?"; + return true; + } - User *user = new User(params[0], params[3], params[4], vhost, ip, source.GetServer(), params[10], user_ts, params[7]); + User *user = new User(params[0], params[3], params[4], vhost, ip, s, params[10], user_ts, params[7]); const NickAlias *na = NULL; |