projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95b073d
)
allow god users overriding the cross-channel restriction
author
pk910
<philipp@zoelle1.de>
Sun, 25 Dec 2011 22:03:45 +0000
(23:03 +0100)
committer
pk910
<philipp@zoelle1.de>
Sun, 25 Dec 2011 22:03:45 +0000
(23:03 +0100)
src/modcmd.c
patch
|
blob
|
history
diff --git
a/src/modcmd.c
b/src/modcmd.c
index 03b24d8351b984f6a9b53df311e9c79ce1ee0292..5a4de9ad1db3bd2e2c6d361379406a795b5f367f 100644
(file)
--- a/
src/modcmd.c
+++ b/
src/modcmd.c
@@
-398,8
+398,12
@@
static void handle_command_async(struct ClientSocket *client, struct UserNode *u
requested_uaccess = 1;
uaccess = getChannelAccess(user, chan);
if(!uaccess) {
- reply(tmp_text_client, user, "MODCMD_CROSSCHAN", chan->name);
- return;
+ if(isGodMode(user)) {
+ eventflags |= CMDFLAG_OPLOG;
+ } else {
+ reply(tmp_text_client, user, "MODCMD_CROSSCHAN", chan->name);
+ return;
+ }
}
}
}