Permalink
Browse files

- people with access level for ACCESS can see the list [Kamen Sabeff]

- QUIT messages for all services which resolves splits on DIE and
  RESTART [Kamen Sabeff]
  • Loading branch information...
dkorunic committed Jul 4, 2013
1 parent dcfa156 commit caab213f05c542977e1a2a12009e97b0d646229b
Showing with 38 additions and 6 deletions.
  1. +3 −0 ChangeLog
  2. +22 −6 src/chanserv.c
  3. +9 −0 src/dcc.c
  4. +4 −0 src/misc.c
View
@@ -44,6 +44,9 @@ Hybserv-1.9.5-dev
- hide level settings from ordinary non-access users [Kamen Sabeff]
- fix for NickServer ns access add crash and not matching a hostmask
already in ns access list [Kamen Sabeff]
+ + people with access level for ACCESS can see the list [Kamen Sabeff]
+ - QUIT messages for all services which resolves splits on DIE and
+ RESTART [Kamen Sabeff]
Hybserv-1.9.4
View
@@ -4458,22 +4458,25 @@ c_level(struct Luser *lptr, struct NickInfo *nptr, int ac, char **av)
return;
}
- if (!IsFounder(lptr, cptr))
+ if (!irccmp(av[2], "LIST"))
+ {
+ int ii;
+
+ if (!HasAccess(cptr, lptr, CA_ACCESS))
{
notice(n_ChanServ, lptr->nick,
- "Founder access is required for [\002LEVEL\002]");
+ ERR_NEED_ACCESS, cptr->access_lvl[CA_ACCESS], "LEVEL",
+ cptr->name);
+
RecordCommand("%s: %s!%s@%s failed LEVEL [%s] %s %s %s",
n_ChanServ, lptr->nick, lptr->username,
lptr->hostname, cptr->name, av[2],
(ac >= 4) ? av[3] : "",
(ac >= 5) ? av[4] : "");
+
return;
}
- if (!irccmp(av[2], "LIST"))
- {
- int ii;
-
notice(n_ChanServ, lptr->nick,
"-- Access Levels for [\002%s\002] --",
cptr->name);
@@ -4505,6 +4508,19 @@ c_level(struct Luser *lptr, struct NickInfo *nptr, int ac, char **av)
return;
}
+ if (!IsFounder(lptr, cptr))
+ {
+ notice(n_ChanServ, lptr->nick,
+ "Founder access is required for [\002LEVEL\002]");
+ RecordCommand("%s: %s!%s@%s failed LEVEL [%s] %s %s %s",
+ n_ChanServ, lptr->nick, lptr->username,
+ lptr->hostname, cptr->name, av[2],
+ (ac >= 4) ? av[3] : "",
+ (ac >= 5) ? av[4] : "");
+ return;
+ }
+
+
if (!irccmp(av[2], "SET"))
{
int newlevel, index;
View
@@ -1964,6 +1964,15 @@ ServReboot()
}
connections = NULL;
+#if defined(NICKSERVICES) && defined(CHANNELSERVICES)
+
+ toserv(":%s QUIT :%s\r\n", n_ChanServ, "Restarting");
+#endif
+#ifdef SEENSERVICES
+ toserv(":%s QUIT :%s\r\n", n_SeenServ, "Restarting");
+#endif
+ toserv(":%s QUIT :%s\r\n", n_OperServ, "Restarting");
+
/* Instead of SQUIT -kre */
toserv(":%s ERROR :Restarting\r\n", Me.name);
toserv(":%s QUIT\r\n", Me.name);
View
@@ -284,6 +284,10 @@ DoShutdown(char *who, char *reason)
toserv(":%s QUIT :%s\r\n", n_ChanServ, "Shutting Down");
#endif
+#ifdef SEENSERVICES
+ toserv(":%s QUIT :%s\r\n", n_SeenServ, "Shutting Down");
+#endif
+ toserv(":%s QUIT :%s\r\n", n_OperServ, "Shutting Down");
/* close listening sockets */
for (pptr = PortList; pptr; pptr = pptr->next)

0 comments on commit caab213

Please sign in to comment.