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_trim.c
diff --git
a/src/cmd_neonserv_trim.c
b/src/cmd_neonserv_trim.c
index 909216eae6f4f0cc287b2101804e7d65dd13b4bd..65a0e73482f76d6a62ffbb2710dd8174670c28e2 100644
(file)
--- a/
src/cmd_neonserv_trim.c
+++ b/
src/cmd_neonserv_trim.c
@@
-1,5
+1,5
@@
-/* cmd_neonserv_trim.c - NeonServ v5.
1
- * Copyright (C) 2011 Philipp Kreil (pk910)
+/* cmd_neonserv_trim.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
@@
-34,7
+34,7
@@
struct neonserv_cmd_trim_cache {
};
CMD_BIND(neonserv_cmd_trim) {
};
CMD_BIND(neonserv_cmd_trim) {
- if(stricmp(argv[0], "bans") && !checkChannelAccess(user, chan, "channel_candel", 0
, 0
)) {
+ if(stricmp(argv[0], "bans") && !checkChannelAccess(user, chan, "channel_candel", 0)) {
if(isGodMode(user)) {
event->flags |= CMDFLAG_OPLOG;
} else {
if(isGodMode(user)) {
event->flags |= CMDFLAG_OPLOG;
} else {
@@
-50,9
+50,9
@@
CMD_BIND(neonserv_cmd_trim) {
}
if(!stricmp(argv[0], "users")) {
min_access = 1;
}
if(!stricmp(argv[0], "users")) {
min_access = 1;
- max_access = getChannelAccess(user, chan
, 0
) - 1;
+ max_access = getChannelAccess(user, chan) - 1;
} else if(!stricmp(argv[0], "bans")) {
} else if(!stricmp(argv[0], "bans")) {
- if(!checkChannelAccess(user, chan, "channel_staticban", 0
, 0
)) {
+ if(!checkChannelAccess(user, chan, "channel_staticban", 0)) {
if(isGodMode(user)) {
event->flags |= CMDFLAG_OPLOG;
} else {
if(isGodMode(user)) {
event->flags |= CMDFLAG_OPLOG;
} else {
@@
-96,7
+96,7
@@
CMD_BIND(neonserv_cmd_trim) {
min_access = atoi(argv[0]);
max_access = min_access;
}
min_access = atoi(argv[0]);
max_access = min_access;
}
- if(max_access >= getChannelAccess(user, chan
, 0
)) {
+ if(max_access >= getChannelAccess(user, chan)) {
if(isGodMode(user)) {
event->flags |= CMDFLAG_OPLOG;
} else {
if(isGodMode(user)) {
event->flags |= CMDFLAG_OPLOG;
} else {