projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1010fe1
)
step over ! if it's allowed on MODE_NOFLOOD
author
pk910
<philipp@zoelle1.de>
Sun, 17 Jul 2011 15:20:11 +0000
(17:20 +0200)
committer
pk910
<philipp@zoelle1.de>
Sun, 17 Jul 2011 15:20:11 +0000
(17:20 +0200)
src/proto-p10.c
patch
|
blob
|
history
diff --git
a/src/proto-p10.c
b/src/proto-p10.c
index 1265aea61562b7036311942ab6c883fd32a5ef93..c1271db0934dfca74cb5f6418ab4c72460016fe1 100644
(file)
--- a/
src/proto-p10.c
+++ b/
src/proto-p10.c
@@
-2644,10
+2644,11
@@
mod_chanmode_parse(struct chanNode *channel, char **modes, unsigned int argc, un
if (in_arg >= argc)
goto error;
char *mode = modes[in_arg++];
- if(mode[0] == '!' && !(flags & MCP_OPERMODE)) { //noflood flag also for overriders
- //only allow opers
- goto error;
- }
+ if(mode[0] == '!' && !(flags & MCP_OPERMODE)) //noflood flag also for overriders
+ goto error;//only allow opers
+ else if(mode[0] == '!')
+ mode++;
+
if(mode[0] == '+' || mode[0] == '@') {
mode++;
}