1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 09:16:37 +02:00

# 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
This commit is contained in:
certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b
2006-03-01 14:16:54 +00:00
parent 88b67f00f7
commit fed9959312
2 changed files with 3 additions and 5 deletions
+1
View File
@@ -16,6 +16,7 @@ Provided by Anope Dev. <dev@anope.org> - 2006
03/01 F Fixed suspend check on /cs invite. [#429]
03/01 F Fixed memleaks in some protocol files. [#434]
03/01 F Fixed bot check on /bs unassign. [#446]
03/01 F Fixed wasteful finduser() call in os_oline.c [#457]
Provided by nenolod. <nenolod@nenolod.net> - 2006
02/03 A Support for Charybdis IRCd. [ #00]
+2 -5
View File
@@ -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);