projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
14d1770
)
show Access on cmd_handleinfo & bypass mask check for clones
author
pk910
<philipp@zoelle1.de>
Sun, 17 Jul 2011 01:17:18 +0000
(
03:17
+0200)
committer
pk910
<philipp@zoelle1.de>
Sun, 17 Jul 2011 01:17:18 +0000
(
03:17
+0200)
src/nickserv.c
patch
|
blob
|
history
diff --git
a/src/nickserv.c
b/src/nickserv.c
index f245d6ea6855f732200647ac7015970a17ebcc43..6831c586c308ce19c3710b2af300f71f28e63597 100644
(file)
--- a/
src/nickserv.c
+++ b/
src/nickserv.c
@@
-216,6
+216,7
@@
static const struct message_entry msgtab[] = {
{ "NSMSG_HANDLEINFO_INFOLINE", " Infoline: %s" },
{ "NSMSG_HANDLEINFO_DEVNULL", " DevNull Class: %s" },
{ "NSMSG_HANDLEINFO_WEBSITE", " Website: %s" },
{ "NSMSG_HANDLEINFO_INFOLINE", " Infoline: %s" },
{ "NSMSG_HANDLEINFO_DEVNULL", " DevNull Class: %s" },
{ "NSMSG_HANDLEINFO_WEBSITE", " Website: %s" },
+ { "NSMSG_HANDLEINFO_ACCESS", " Access: %i" },
{ "NSMSG_HANDLEINFO_FLAGS", " Flags: %s" },
{ "NSMSG_HANDLEINFO_EPITHET", " Epithet: %s" },
{ "NSMSG_HANDLEINFO_FAKEIDENT", " Fake ident: %s" },
{ "NSMSG_HANDLEINFO_FLAGS", " Flags: %s" },
{ "NSMSG_HANDLEINFO_EPITHET", " Epithet: %s" },
{ "NSMSG_HANDLEINFO_FAKEIDENT", " Fake ident: %s" },
@@
-796,7
+797,7
@@
valid_user_for(struct userNode *user, struct handle_info *hi)
unsigned int ii;
/* If no hostmasks on the account, allow it. */
unsigned int ii;
/* If no hostmasks on the account, allow it. */
- if (!hi->masks->used)
+ if (!hi->masks->used
|| IsDummy(user)
)
return 1;
/* If any hostmask matches, allow it. */
for (ii=0; ii<hi->masks->used; ii++)
return 1;
/* If any hostmask matches, allow it. */
for (ii=0; ii<hi->masks->used; ii++)
@@
-1414,6
+1415,8
@@
static NICKSERV_FUNC(cmd_handleinfo)
reply("NSMSG_HANDLEINFO_DEVNULL", (hi->devnull ? hi->devnull : nsmsg_none));
if (user->handle_info && HANDLE_FLAGGED(user->handle_info, BOT))
reply("NSMSG_HANDLEINFO_WEBSITE", (hi->website ? hi->website : nsmsg_none));
reply("NSMSG_HANDLEINFO_DEVNULL", (hi->devnull ? hi->devnull : nsmsg_none));
if (user->handle_info && HANDLE_FLAGGED(user->handle_info, BOT))
reply("NSMSG_HANDLEINFO_WEBSITE", (hi->website ? hi->website : nsmsg_none));
+ if(hi->opserv_level > 0 && user->handle_info && HANDLE_FLAGGED(user->handle_info, BOT))
+ reply("NSMSG_HANDLEINFO_ACCESS", hi->opserv_level);
if (HANDLE_FLAGGED(hi, FROZEN))
reply("NSMSG_HANDLEINFO_VACATION");
if (HANDLE_FLAGGED(hi, FROZEN))
reply("NSMSG_HANDLEINFO_VACATION");