projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added "nowho" parameter to debug userlist and fixed memory leak in DBHelper.c
[NeonServV5.git]
/
src
/
cmd_neonserv_ban.c
diff --git
a/src/cmd_neonserv_ban.c
b/src/cmd_neonserv_ban.c
index 232b679cdf9cdafffb4f4792ea90b6e3f0c9ea30..84a497a3ef165c8418841f6f3c46ac3c2cc9e167 100644
(file)
--- a/
src/cmd_neonserv_ban.c
+++ b/
src/cmd_neonserv_ban.c
@@
-1,5
+1,5
@@
-/* cmd_neonserv_ban.c - NeonServ v5.
1
- * Copyright (C) 2011 Philipp Kreil (pk910)
+/* cmd_neonserv_ban.c - NeonServ v5.
3
+ * Copyright (C) 2011
-2012
Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-81,6
+81,11
@@
static void neonserv_cmd_ban_async1(struct ClientSocket *client, struct ClientSo
skip = 1;
break;
}
skip = 1;
break;
}
+ if(cuser == user || ((cuser->flags & USERFLAG_ISAUTHED) && !stricmp(user->auth, cuser->auth))) {
+ reply(textclient, user, "NS_YOU_PROTECTED");
+ skip = 1;
+ break;
+ }
if(isUserProtected(chan, cuser, user)) {
reply(textclient, user, "NS_USER_PROTECTED", cuser->nick);
skip = 1;
if(isUserProtected(chan, cuser, user)) {
reply(textclient, user, "NS_USER_PROTECTED", cuser->nick);
skip = 1;