diff options
author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-03-01 14:16:54 +0000 |
---|---|---|
committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-03-01 14:16:54 +0000 |
commit | fed9959312cabeb614d703ed16db81bcd11e4d66 (patch) | |
tree | 777a299c3053138dd014c49ad983ccf48d5e2b90 /src | |
parent | 88b67f00f7c5036990492e6b64f2f7caa5b98583 (diff) |
# BUILD : 1.7.13 (982)
# BUGS : 457
# NOTES : Fixed wasteful finduser() in os_oline.c
git-svn-id: svn://svn.anope.org/anope/trunk@982 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@707 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/os_oline.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/os_oline.c b/src/core/os_oline.c index 39ae5ae49..3bdad47a0 100644 --- a/src/core/os_oline.c +++ b/src/core/os_oline.c @@ -85,11 +85,8 @@ int do_operoline(User * u) syntax_error(s_OperServ, u, "OLINE", OPER_OLINE_SYNTAX); return MOD_CONT; } else { - u2 = finduser(nick); - -/* let's check whether the user is online */ - - if (!finduser(nick)) { + /* let's check whether the user is online */ + if (!(u2 = finduser(nick))) { notice_lang(s_OperServ, u, NICK_X_NOT_IN_USE, nick); } else if (u2 && flags[0] == '+') { anope_cmd_svso(s_OperServ, nick, flags); |