1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 12:33:13 +02:00

Applied patch from w00t to remove sajoin in inspircd.

git-svn-id: svn://svn.anope.org/anope/trunk@1405 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1120 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
2008-08-08 10:04:51 +00:00
parent 964bbfe559
commit b5d62435c3
2 changed files with 3 additions and 24 deletions
+3
View File
@@ -45,6 +45,9 @@ Anope Version S V N
05/12 F anope_cmd_notice_ops for unreal now includes source. [ #00]
05/12 F moduleNoticeLang() now calls notice_user instead of notice(). [ #00]
Provided by Robin Burchell <w00t@inspircd.org> - 2008
08/08 F Removed sajoin fro minspircd protocol support. [ #00]
Provided by Christian Schroer <Christian.Schroer@coderschlampe.com> - 2008
07/20 F Updated Deutch language file. [#892]
-24
View File
@@ -386,7 +386,6 @@ int has_globopsmod = 0;
The ircd tends to /squit us if we issue unsupported cmds.
- katsklaw */
int has_svsholdmod = 0;
int has_sajoinmod = 0;
int has_sapartmod = 0;
int has_sanickmod = 0;
int has_chghostmod = 0;
@@ -489,7 +488,6 @@ void moduleAddIRCDMsgs(void) {
m = createMessage("SILENCE", anope_event_null); addCoreMessage(IRCD,m);
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("SVSMODE", anope_event_mode) ;addCoreMessage(IRCD,m);
m = createMessage("QLINE", anope_event_null); addCoreMessage(IRCD,m);
@@ -725,21 +723,6 @@ int anope_event_sanick(char *source, int ac, char **av)
return MOD_CONT;
}
int anope_event_sajoin(char *source, int ac, char **av)
{
if (has_sajoinmod == 1) {
char *newav[1];
if (ac != 2)
return MOD_CONT;
newav[0] = av[1];
do_join(av[0], 1, newav);
return MOD_CONT;
} else {
anope_cmd_global(s_OperServ, "m_sajoin not loaded!");
}
return MOD_CONT;
}
int anope_event_sapart(char *source, int ac, char **av)
{
if (has_sapartmod == 1) {
@@ -1560,7 +1543,6 @@ int anope_event_capab(char *source, int ac, char **av)
has_servicesmod = 0;
has_globopsmod = 0;
has_svsholdmod = 0;
has_sajoinmod = 0;
has_sapartmod = 0;
has_sanickmod = 0;
has_chghostmod = 0;
@@ -1576,9 +1558,6 @@ int anope_event_capab(char *source, int ac, char **av)
if (strstr(av[1], "m_svshold.so")) {
has_svsholdmod = 1;
}
if (strstr(av[1], "m_sajoin.so")) {
has_sajoinmod = 1;
}
if (strstr(av[1], "m_sapart.so")) {
has_sapartmod = 1;
}
@@ -1609,9 +1588,6 @@ int anope_event_capab(char *source, int ac, char **av)
if (has_svsholdmod == 0) {
anope_cmd_global(s_OperServ, "SVSHOLD missing, Usage disabled until module is loaded.");
}
if (has_sajoinmod == 0) {
anope_cmd_global(s_OperServ, "SAJOIN missing, Usage disabled until module is loaded.");
}
if (has_sapartmod == 0) {
anope_cmd_global(s_OperServ, "SAPART missing, Usage disabled until module is loaded.");
}