summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-01 20:25:55 -0400
committerAdam <Adam@anope.org>2010-10-01 20:25:55 -0400
commit70056dd4689eeab4f7a9b31a921e0d7e40d5ed0d (patch)
treeafa6487d0be945b85fca458ecd2f3db3e15dea28 /src
parent5d9df2bdc1bad51ec60bf6e64e27a01dd9336fa8 (diff)
parent9d2ef3f13085cf46913eb743e2561ea217c866fa (diff)
Merge branch '1.9' of anope.git.sf.net:/gitroot/anope/anope into 1.9
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 8ebe339ea..d4b1e15f2 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -762,18 +762,18 @@ User *do_nick(const Anope::string &source, const Anope::string &nick, const Anop
EventReturn MOD_RESULT;
FOREACH_RESULT(I_OnPreUserConnect, OnPreUserConnect(*user));
- if (MOD_RESULT == EVENT_STOP)
- return *user;
- if (Config->LimitSessions && !serv->IsULined())
- add_session(nick, host, user->ip() ? user->ip.addr() : "");
+ if (user && MOD_RESULT != EVENT_STOP)
+ {
+ if (Config->LimitSessions && !serv->IsULined())
+ add_session(nick, host, user->ip() ? user->ip.addr() : "");
- if (!user)
- return NULL;
+ if (!user)
+ return NULL;
- XLineManager::CheckAll(*user);
+ XLineManager::CheckAll(*user);
+ }
- /* User is no longer connected, return */
if (!user)
return NULL;