mirror of
https://github.com/anope/anope.git
synced 2026-06-29 09:16:38 +02:00
BUILD : 1.7.14 (1071) BUGS : N/A NOTES : plexus3 now uses the ircd struct when deciding which modes to send for svid_umode3 calls
git-svn-id: svn://svn.anope.org/anope/trunk@1071 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@795 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
3e27318fcf
commit
cc4984f262
+17
-8
@@ -1558,14 +1558,23 @@ plexus_cmd_svid_umode2 (User * u, char *ts)
|
||||
void
|
||||
plexus_cmd_svid_umode3 (User * u, char *ts)
|
||||
{
|
||||
if (u->svid != u->timestamp)
|
||||
{
|
||||
common_svsmode (u, is_services_root (u) ? "+Nrd" : "+rd", ts);
|
||||
}
|
||||
else
|
||||
{
|
||||
common_svsmode (u, is_services_root (u) ? "+Nr" : "+r", NULL);
|
||||
}
|
||||
char modes[512];
|
||||
int len;
|
||||
strncpy(modes,ircd->modeonreg,512);
|
||||
len = strlen(ircd->modeonreg);
|
||||
if(ircd->rootmodeonid && is_services_root(u)) {
|
||||
strncat(modes,ircd->rootmodeonid,512-len);
|
||||
} else if(ircd->adminmodeonid && is_services_admin(u)) {
|
||||
strncat(modes,ircd->adminmodeonid,512-len);
|
||||
} else if(ircd->opermodeonid && is_services_oper(u)) {
|
||||
strncat(modes,ircd->opermodeonid,512-len);
|
||||
}
|
||||
if (u->svid != u->timestamp) {
|
||||
strncat(modes,"d",1);
|
||||
common_svsmode (u, modes, ts);
|
||||
} else {
|
||||
common_svsmode (u, modes, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* NICK <newnick> */
|
||||
|
||||
+5
-1
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="14"
|
||||
VERSION_EXTRA=""
|
||||
VERSION_BUILD="1070"
|
||||
VERSION_BUILD="1071"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.14 (1071)
|
||||
# BUGS : N/A
|
||||
# NOTES : plexus3 now uses the ircd struct when deciding which modes to send for svid_umode3 calls
|
||||
#
|
||||
# BUILD : 1.7.14 (1070)
|
||||
# BUGS : N/A
|
||||
# NOTES : Added N as a root mode on id for plexus3.c
|
||||
|
||||
Reference in New Issue
Block a user