summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/botserv.c18
-rw-r--r--src/datafiles.c7
-rw-r--r--src/main.c20
-rw-r--r--src/protocol/bahamut.c2
-rw-r--r--src/protocol/dreamforge.c2
-rw-r--r--src/protocol/inspircd.c3
-rw-r--r--src/protocol/plexus2.c2
-rw-r--r--src/protocol/plexus3.c2
-rw-r--r--src/protocol/rageircd.c2
-rw-r--r--src/protocol/solidircd.c2
-rw-r--r--src/protocol/ultimate2.c4
-rw-r--r--src/protocol/ultimate3.c2
-rw-r--r--src/protocol/viagra.c2
13 files changed, 35 insertions, 33 deletions
diff --git a/src/botserv.c b/src/botserv.c
index dd606952e..c73b6c7f9 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -205,21 +205,21 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf)
if ((ci->botflags & BS_KICK_CAPS)
&& ((c = strlen(buf)) >= ci->capsmin)) {
int i = 0;
- int l = 0;
+ int l = 0;
char *s = buf;
do {
if (isupper(*s))
i++;
- else if (islower(*s))
- l++;
+ else if (islower(*s))
+ l++;
} while (*s++);
-
- /* i counts uppercase chars, l counts lowercase chars. Only
- * alphabetic chars (so islower || isupper) qualify for the
- * percentage of caps to kick for; the rest is ignored. -GD
- */
-
+
+ /* i counts uppercase chars, l counts lowercase chars. Only
+ * alphabetic chars (so islower || isupper) qualify for the
+ * percentage of caps to kick for; the rest is ignored. -GD
+ */
+
if (i >= ci->capsmin && i * 100 / (i + l) >= ci->capspercent) {
check_ban(ci, u, TTB_CAPS);
bot_kick(ci, u, BOT_REASON_CAPS);
diff --git a/src/datafiles.c b/src/datafiles.c
index 60434a28f..b49780687 100644
--- a/src/datafiles.c
+++ b/src/datafiles.c
@@ -736,9 +736,9 @@ void ModuleDatabaseBackup(char *dbname)
char ext[9];
- if (debug) {
- alog("Module Database Backing up %s", dbname);
- }
+ if (debug) {
+ alog("Module Database Backing up %s", dbname);
+ }
ModuleRemoveBackups(dbname);
curday = tm.tm_yday;
strftime(ext, sizeof(ext), "%Y%m%d", &tm);
@@ -770,4 +770,3 @@ void ModuleRemoveBackups(char *dbname)
}
/*************************************************************************/
-
diff --git a/src/main.c b/src/main.c
index 9bc364989..5bde61f91 100644
--- a/src/main.c
+++ b/src/main.c
@@ -47,7 +47,7 @@ int noexpire = 0; /* -noexpire */
int protocoldebug = 0; /* -protocoldebug */
#ifdef _WIN32
-char *binary_dir; /* Used to store base path for win32 restart */
+char *binary_dir; /* Used to store base path for win32 restart */
#endif
#ifdef USE_RDB
@@ -414,11 +414,11 @@ void sighandler(int signum)
break;
case -19:
snprintf(buf, sizeof(buf), "Sending event %s %s",
- EVENT_DB_SAVING, EVENT_START);
+ EVENT_DB_SAVING, EVENT_START);
break;
case -20:
snprintf(buf, sizeof(buf), "Sending event %s %s",
- EVENT_DB_SAVING, EVENT_STOP);
+ EVENT_DB_SAVING, EVENT_STOP);
break;
case -21:
snprintf(buf, sizeof(buf), "expiring nicknames");
@@ -443,11 +443,11 @@ void sighandler(int signum)
break;
case -30:
snprintf(buf, sizeof(buf), "Sending event %s %s",
- EVENT_DB_EXPIRE, EVENT_START);
+ EVENT_DB_EXPIRE, EVENT_START);
break;
case -31:
snprintf(buf, sizeof(buf), "Sending event %s %s",
- EVENT_DB_EXPIRE, EVENT_STOP);
+ EVENT_DB_EXPIRE, EVENT_STOP);
break;
default:
snprintf(buf, sizeof(buf), "waiting=%d", waiting);
@@ -656,10 +656,10 @@ int main(int ac, char **av, char **envp)
disconn(servsock);
close_log();
#ifdef _WIN32
- /* This fixes bug #589 - change to binary directory for restart */
- /* -- heinz */
- if (binary_dir)
- chdir(binary_dir);
+ /* This fixes bug #589 - change to binary directory for restart */
+ /* -- heinz */
+ if (binary_dir)
+ chdir(binary_dir);
#endif
execve(SERVICES_BIN, av, envp);
if (!readonly) {
@@ -679,7 +679,7 @@ int main(int ac, char **av, char **envp)
#ifdef _WIN32
if (binary_dir)
- free(binary_dir);
+ free(binary_dir);
#endif
return 0;
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index 1fb2a9997..c71b46958 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -666,7 +666,7 @@ void moduleAddIRCDMsgs(void) {
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
- m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("SVSMODE", anope_event_mode); addCoreMessage(IRCD,m);
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);
diff --git a/src/protocol/dreamforge.c b/src/protocol/dreamforge.c
index f6e9154ae..3ff74be52 100644
--- a/src/protocol/dreamforge.c
+++ b/src/protocol/dreamforge.c
@@ -493,7 +493,7 @@ void moduleAddIRCDMsgs(void) {
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
- m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("SVSMODE", anope_event_mode); addCoreMessage(IRCD,m);
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SQLINE", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/inspircd.c b/src/protocol/inspircd.c
index 8fc33f537..5a57e4cb0 100644
--- a/src/protocol/inspircd.c
+++ b/src/protocol/inspircd.c
@@ -475,7 +475,8 @@ void moduleAddIRCDMsgs(void) {
m = createMessage("SAMODE", anope_event_samode); addCoreMessage(IRCD,m);
m = createMessage("SANICK", anope_event_sanick); addCoreMessage(IRCD,m);
m = createMessage("SAJOIN", anope_event_sajoin); addCoreMessage(IRCD,m);
- m = createMessage("SAPART", anope_event_sapart);addCoreMessage(IRCD,m);
+ m = createMessage("SAPART", anope_event_sapart); addCoreMessage(IRCD,m);
+ m = createMessage("SVSMODE", anope_event_mode) ;addCoreMessage(IRCD,m);
m = createMessage("QLINE", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("GLINE", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("ELINE", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/plexus2.c b/src/protocol/plexus2.c
index 16f62729e..ff8d289cd 100644
--- a/src/protocol/plexus2.c
+++ b/src/protocol/plexus2.c
@@ -750,7 +750,7 @@ moduleAddIRCDMsgs (void)
addCoreMessage (IRCD, m);
m = createMessage ("WHOIS", anope_event_whois);
addCoreMessage (IRCD, m);
- m = createMessage ("SVSMODE", anope_event_null);
+ m = createMessage ("SVSMODE", anope_event_mode);
addCoreMessage (IRCD, m);
m = createMessage ("SVSNICK", anope_event_null);
addCoreMessage (IRCD, m);
diff --git a/src/protocol/plexus3.c b/src/protocol/plexus3.c
index a5bd5d126..c1e3b64de 100644
--- a/src/protocol/plexus3.c
+++ b/src/protocol/plexus3.c
@@ -741,6 +741,8 @@ moduleAddIRCDMsgs (void)
addCoreMessage (IRCD, m);
m = createMessage ("ENCAP", anope_event_encap);
addCoreMessage (IRCD, m);
+ m = createMessage ("SVSMODE", anope_event_mode);
+ addCoreMessage (IRCD, m);
}
void
diff --git a/src/protocol/rageircd.c b/src/protocol/rageircd.c
index d49199025..e24658e04 100644
--- a/src/protocol/rageircd.c
+++ b/src/protocol/rageircd.c
@@ -533,7 +533,7 @@ void moduleAddIRCDMsgs(void) {
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
- m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("SVSMODE", anope_event_mode); addCoreMessage(IRCD,m);
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);
diff --git a/src/protocol/solidircd.c b/src/protocol/solidircd.c
index a8431d904..0f1a77baa 100644
--- a/src/protocol/solidircd.c
+++ b/src/protocol/solidircd.c
@@ -672,7 +672,7 @@ void moduleAddIRCDMsgs(void) {
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
- m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("SVSMODE", anope_event_mode); addCoreMessage(IRCD,m);
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);
diff --git a/src/protocol/ultimate2.c b/src/protocol/ultimate2.c
index bb0362b2d..495a23d07 100644
--- a/src/protocol/ultimate2.c
+++ b/src/protocol/ultimate2.c
@@ -703,9 +703,9 @@ void moduleAddIRCDMsgs(void) {
if (UseTokens) {
m = createMessage("h", anope_event_null); addCoreMessage(IRCD,m);
}
- m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("SVSMODE", anope_event_mode); addCoreMessage(IRCD,m);
if (UseTokens) {
- m = createMessage("n", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("n", anope_event_mode); addCoreMessage(IRCD,m);
}
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
if (UseTokens) {
diff --git a/src/protocol/ultimate3.c b/src/protocol/ultimate3.c
index db2ccceff..ac0d6ee44 100644
--- a/src/protocol/ultimate3.c
+++ b/src/protocol/ultimate3.c
@@ -623,7 +623,7 @@ void moduleAddIRCDMsgs(void) {
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
- m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("SVSMODE", anope_event_mode); addCoreMessage(IRCD,m);
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);
diff --git a/src/protocol/viagra.c b/src/protocol/viagra.c
index 2a9303510..ed2f6df4f 100644
--- a/src/protocol/viagra.c
+++ b/src/protocol/viagra.c
@@ -703,7 +703,7 @@ void moduleAddIRCDMsgs(void) {
m = createMessage("RAKILL", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSKILL", anope_event_null); addCoreMessage(IRCD,m);
- m = createMessage("SVSMODE", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("SVSMODE", anope_event_mode); addCoreMessage(IRCD,m);
m = createMessage("SVSNICK", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SVSNOOP", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SQLINE", anope_event_sqline); addCoreMessage(IRCD,m);