projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a502dd
)
Allow !trim (for users) to work for helpers.
author
Michael Poole
<mdpoole@troilus.org>
Mon, 31 Oct 2011 03:56:13 +0000
(23:56 -0400)
committer
Michael Poole
<mdpoole@troilus.org>
Mon, 31 Oct 2011 03:56:13 +0000
(23:56 -0400)
Fixes SourceForge bug #
3081638
.
src/chanserv.c (cmd_trim_users): Use GetChannelUser() to check user
access, so that overrides work.
src/chanserv.c
patch
|
blob
|
history
diff --git
a/src/chanserv.c
b/src/chanserv.c
index 2d3669684e9c5cb3196ab10dc0e3694a842fd450..30e77236f10ec44de351b5717cae9358c7a82b2a 100644
(file)
--- a/
src/chanserv.c
+++ b/
src/chanserv.c
@@
-2821,7
+2821,7
@@
cmd_trim_users(struct userNode *user, struct chanNode *channel, unsigned short m
unsigned int count;
unsigned long limit;
- actor = GetChannel
Access
(channel->channel_info, user->handle_info);
+ actor = GetChannel
User
(channel->channel_info, user->handle_info);
if(min_access > max_access)
{
send_message(user, chanserv, "CSMSG_BAD_RANGE", min_access, max_access);