summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-11-02 17:42:52 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-11-02 17:42:52 +0000
commit2cfdc0869594a6e4f69b103cd321e52f24ad98ab (patch)
tree9db11734f18af5da87b6772aebbdbcaae16b533c
parent42db280b0f98dcfe5d5559b7c733f6997f22ecba (diff)
Fixed bug #403
Fixed segfault on /os modload a non-existing file git-svn-id: svn://svn.anope.org/anope/trunk@931 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@669 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes2
-rw-r--r--src/modules.c3
-rw-r--r--src/protocol/bahamut.c2
-rw-r--r--src/protocol/dreamforge.c2
-rw-r--r--src/protocol/hybrid.c2
-rw-r--r--src/protocol/inspircd.c2
-rw-r--r--src/protocol/plexus.c2
-rw-r--r--src/protocol/ptlink.c2
-rw-r--r--src/protocol/rageircd.c2
-rw-r--r--src/protocol/ratbox.c2
-rw-r--r--src/protocol/shadowircd.c2
-rw-r--r--src/protocol/solidircd.c2
-rw-r--r--src/protocol/ultimate2.c2
-rw-r--r--src/protocol/ultimate3.c2
-rw-r--r--src/protocol/unreal31.c2
-rw-r--r--src/protocol/unreal32.c2
-rw-r--r--src/protocol/viagra.c2
17 files changed, 19 insertions, 16 deletions
diff --git a/Changes b/Changes
index d04fd267d..2851cf591 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
Anope Version S V N
--------------------
Provided by Anope Dev. <dev@anope.org> - 2005
+11/02 F !protect/!deprotect no longer work for a number of ircds. [#403]
+11/02 F segfault when os modloading a non-existing module. [ #00]
11/01 F /os reload - BSFantasyChar was not sstrduped if not defined. [ #00]
10/30 F Updated docs/FAQ. [ #00]
diff --git a/src/modules.c b/src/modules.c
index b6d43c5d5..6825bb1db 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -538,7 +538,8 @@ int loadModule(Module * m, User * u)
if ((ret = moduleCopyFile(m->name, buf)) != MOD_ERR_OK) {
if (u)
notice_lang(s_OperServ, u, OPER_MODULE_LOAD_FAIL, m->name);
- return ret;
+ m->filename = sstrdup(buf);
+ return ret;
}
m->filename = sstrdup(buf);
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index d7add43d0..512543c10 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -630,7 +630,7 @@ void moduleAddIRCDMsgs(void) {
/* first update the cs protect info about this ircd */
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+","-");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+","-");
/* now add the commands */
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/dreamforge.c b/src/protocol/dreamforge.c
index fb8dad8f4..552200830 100644
--- a/src/protocol/dreamforge.c
+++ b/src/protocol/dreamforge.c
@@ -458,7 +458,7 @@ void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+","-");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+","-");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/hybrid.c b/src/protocol/hybrid.c
index e08cfd72a..957563967 100644
--- a/src/protocol/hybrid.c
+++ b/src/protocol/hybrid.c
@@ -595,7 +595,7 @@ int anope_event_436(char *source, int ac, char **av)
void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+","-");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+","-");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/inspircd.c b/src/protocol/inspircd.c
index 063ac6b20..cd7913d07 100644
--- a/src/protocol/inspircd.c
+++ b/src/protocol/inspircd.c
@@ -444,7 +444,7 @@ void moduleAddIRCDMsgs(void) {
/* user has no choice but to use tokens with InspIRCd :) */
UseTokens = 1;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+a","-a");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");
m = createMessage("$", anope_event_null); addCoreMessage(IRCD,m); /* send routing table */
m = createMessage("X", anope_event_null); addCoreMessage(IRCD,m); /* begin netburst NOW */
diff --git a/src/protocol/plexus.c b/src/protocol/plexus.c
index 0e16b2937..c13b0876f 100644
--- a/src/protocol/plexus.c
+++ b/src/protocol/plexus.c
@@ -696,7 +696,7 @@ moduleAddIRCDMsgs (void)
{
Message *m;
- updateProtectDetails ("PROTECT", "PROTECTME", "!protect", "!deprotect",
+ updateProtectDetails ("PROTECT", "PROTECTME", "protect", "deprotect",
"AUTOPROTECT", "+", "-");
m = createMessage ("401", anope_event_null);
diff --git a/src/protocol/ptlink.c b/src/protocol/ptlink.c
index 846f1715c..6b0e5898b 100644
--- a/src/protocol/ptlink.c
+++ b/src/protocol/ptlink.c
@@ -531,7 +531,7 @@ int anope_event_436(char *source, int ac, char **av)
void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+a","-a");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/rageircd.c b/src/protocol/rageircd.c
index 932ca15e6..01afbdf75 100644
--- a/src/protocol/rageircd.c
+++ b/src/protocol/rageircd.c
@@ -497,7 +497,7 @@ int anope_event_436(char *source, int ac, char **av)
void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("ADMIN","ADMINME","!admin","!deadmin","AUTOADMIN","+a","-a");
+ updateProtectDetails("ADMIN","ADMINME","admin","deadmin","AUTOADMIN","+a","-a");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index 1af1f316d..fc90608f8 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -702,7 +702,7 @@ void moduleAddIRCDMsgs(void)
{
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+","-");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+","-");
if (UseTS6) {
TS6SID = sstrdup(Numeric);
diff --git a/src/protocol/shadowircd.c b/src/protocol/shadowircd.c
index 22786b87b..893bf63ff 100644
--- a/src/protocol/shadowircd.c
+++ b/src/protocol/shadowircd.c
@@ -741,7 +741,7 @@ void moduleAddIRCDMsgs(void)
{
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+a","-a");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");
TS6SID = sstrdup(Numeric);
UseTS6 = 1;
diff --git a/src/protocol/solidircd.c b/src/protocol/solidircd.c
index 0b70e4c3e..786f6cab0 100644
--- a/src/protocol/solidircd.c
+++ b/src/protocol/solidircd.c
@@ -637,7 +637,7 @@ int anope_event_436(char *source, int ac, char **av)
void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+","-");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+","-");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/ultimate2.c b/src/protocol/ultimate2.c
index 97b2f5ebc..fed5fc88c 100644
--- a/src/protocol/ultimate2.c
+++ b/src/protocol/ultimate2.c
@@ -587,7 +587,7 @@ int anope_event_436(char *source, int ac, char **av)
void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+a","-a");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("436", anope_event_436); addCoreMessage(IRCD,m);
diff --git a/src/protocol/ultimate3.c b/src/protocol/ultimate3.c
index 6eb4bd144..2a22d5d70 100644
--- a/src/protocol/ultimate3.c
+++ b/src/protocol/ultimate3.c
@@ -588,7 +588,7 @@ int anope_event_client(char *source, int ac, char **av)
void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("ADMIN","ADMINME","!admin","!deadmin","AUTOADMIN","+a","-a");
+ updateProtectDetails("ADMIN","ADMINME","admin","deadmin","AUTOADMIN","+a","-a");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/unreal31.c b/src/protocol/unreal31.c
index d1740e17e..3076e72d0 100644
--- a/src/protocol/unreal31.c
+++ b/src/protocol/unreal31.c
@@ -428,7 +428,7 @@ void unreal_set_umode(User * user, int ac, char **av)
void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+a","-a");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 07136bc86..f92a7767d 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -1831,7 +1831,7 @@ void unreal_cmd_ctcp(char *source, char *dest, char *buf)
void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+a","-a");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);
diff --git a/src/protocol/viagra.c b/src/protocol/viagra.c
index 12acee084..48189d55e 100644
--- a/src/protocol/viagra.c
+++ b/src/protocol/viagra.c
@@ -669,7 +669,7 @@ int anope_event_error(char *source, int ac, char **av)
void moduleAddIRCDMsgs(void) {
Message *m;
- updateProtectDetails("PROTECT","PROTECTME","!protect","!deprotect","AUTOPROTECT","+a","-a");
+ updateProtectDetails("PROTECT","PROTECTME","protect","deprotect","AUTOPROTECT","+a","-a");
m = createMessage("401", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("402", anope_event_null); addCoreMessage(IRCD,m);