summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-23 06:48:22 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-23 06:48:22 +0000
commit297b11d1a8e2896c5ae29f4978dfd88cdbb22f27 (patch)
tree8eafd4de288b913a74f933173f4789d57d0ba7b0 /src
parent91e8ac0878ecac082bc1b87f433deb9fe3ad32e4 (diff)
BUILD : 1.7.5 (418) BUGS : N/A NOTES : 1. Fixed Rage IRCD compiler error, 2. Added hook for Unreal SJOIN +I support, 3. wallops() is back, 4. depricated.h added to help older modules work with the new commands
git-svn-id: svn://svn.anope.org/anope/trunk@418 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@279 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/bahamut.c6
-rw-r--r--src/channels.c16
-rw-r--r--src/dreamforge.c6
-rw-r--r--src/hybrid.c5
-rw-r--r--src/modules/module.h1
-rw-r--r--src/ptlink.c6
-rw-r--r--src/rageircd.c8
-rw-r--r--src/send.c20
-rw-r--r--src/ultimate2.c6
-rw-r--r--src/ultimate3.c6
-rw-r--r--src/unreal31.c7
-rw-r--r--src/unreal32.c7
-rw-r--r--src/viagra.c6
13 files changed, 96 insertions, 4 deletions
diff --git a/src/bahamut.c b/src/bahamut.c
index f9680410c..a1f91922e 100644
--- a/src/bahamut.c
+++ b/src/bahamut.c
@@ -1603,5 +1603,11 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
+}
+
#endif
diff --git a/src/channels.c b/src/channels.c
index d2ed718ec..cf5f0b12e 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -638,13 +638,13 @@ void do_part(const char *source, int ac, char **av)
Unreal SJOIN
- On Connect there is
- SJOIN !11LkOb #ircops +nt :@Trystan
+ On Services connect there is
+ SJOIN !11LkOb #ircops +nt :@Trystan &*!*@*.aol.com "*@*.home.com
av[0] = time stamp (base64)
av[1] = channel
av[2] = modes
- av[3] = users + bans
+ av[3] = users + bans + exceptions
On Channel Creation or a User joins an existing
Luna.NomadIrc.Net SJOIN !11LkW9 #akill :@Trystan
@@ -714,6 +714,16 @@ void do_sjoin(const char *source, int ac, char **av)
}
}
+ /* Unreal plans to add +I - for now add the hook to allow
+ 1.7.6 to work with it and not cause problems - TSL */
+ if (*s == '\'') {
+ add_invite(c, myStrGetToken(s, '\'', 1));
+ if (!end)
+ break;
+ s = end + 1;
+ continue;
+ }
+
while (csmodes[(int) *s] != 0)
*end2++ = csmodes[(int) *s++];
*end2 = 0;
diff --git a/src/dreamforge.c b/src/dreamforge.c
index 4318e0760..47f48ae1d 100644
--- a/src/dreamforge.c
+++ b/src/dreamforge.c
@@ -1354,4 +1354,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
+}
+
#endif
diff --git a/src/hybrid.c b/src/hybrid.c
index d309ff621..554bb97e7 100644
--- a/src/hybrid.c
+++ b/src/hybrid.c
@@ -530,6 +530,11 @@ void anope_cmd_global(char *source, const char *fmt, ...)
send_cmd(source ? source : ServerName, "OPERWALL :%s", buf);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "OPERWALL :%s", fmt);
+}
int anope_event_sjoin(char *source, int ac, char **av)
{
diff --git a/src/modules/module.h b/src/modules/module.h
index e62ddf89b..3f341c0aa 100644
--- a/src/modules/module.h
+++ b/src/modules/module.h
@@ -2,6 +2,7 @@
#include "commands.h"
#include "language.h"
#include "modules.h"
+#include "depricated.h"
#define MOD_UNIQUE 0
#define MOD_HEAD 1
diff --git a/src/ptlink.c b/src/ptlink.c
index b13a99b6e..3bde24c9e 100644
--- a/src/ptlink.c
+++ b/src/ptlink.c
@@ -1659,4 +1659,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
+}
+
#endif
diff --git a/src/rageircd.c b/src/rageircd.c
index 9afb8a94f..9bc5d3e0b 100644
--- a/src/rageircd.c
+++ b/src/rageircd.c
@@ -630,7 +630,7 @@ void anope_cmd_topic(char *whosets, char *chan, char *whosetit,
send_cmd(whosets, "TOPIC %s %s %lu :%s", chan, whosetit, when, topic);
}
-void anope_cmd_vhost_off(char *nick)
+void anope_cmd_vhost_off(User * u)
{
send_cmd(s_HostServ, "SVSMODE %s -x", u->nick);
notice_lang(s_HostServ, u, HOST_OFF_UNREAL, u->nick);
@@ -1596,4 +1596,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
+}
+
#endif
diff --git a/src/send.c b/src/send.c
index 754b45888..c5961d5d3 100644
--- a/src/send.c
+++ b/src/send.c
@@ -242,3 +242,23 @@ void privmsg(char *source, char *dest, const char *fmt, ...)
}
anope_cmd_privmsg2(source, dest, buf);
}
+
+/* cause #defines just bitched to much, its back and hooks to
+ a legacy in the ircd protocol files - TSL */
+void wallops(char *source, const char *fmt, ...)
+{
+ va_list args;
+ char buf[BUFSIZE];
+ *buf = '\0';
+
+ if (fmt) {
+ va_start(args, fmt);
+ vsnprintf(buf, BUFSIZE - 1, fmt, args);
+ va_end(args);
+ }
+ if (!buf) {
+ return;
+ }
+
+ anope_cmd_global_legacy(source, buf);
+}
diff --git a/src/ultimate2.c b/src/ultimate2.c
index 11ba07ab3..1eced99d4 100644
--- a/src/ultimate2.c
+++ b/src/ultimate2.c
@@ -1700,4 +1700,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
+}
+
#endif
diff --git a/src/ultimate3.c b/src/ultimate3.c
index be3af6849..2f3dea307 100644
--- a/src/ultimate3.c
+++ b/src/ultimate3.c
@@ -1763,4 +1763,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
+}
+
#endif
diff --git a/src/unreal31.c b/src/unreal31.c
index 8d6ed1a3d..263ec5039 100644
--- a/src/unreal31.c
+++ b/src/unreal31.c
@@ -1552,4 +1552,11 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "%s :%s",
+ send_token("GLOBOPS", "]"), fmt);
+}
+
#endif
diff --git a/src/unreal32.c b/src/unreal32.c
index 8766df588..43cb2bb14 100644
--- a/src/unreal32.c
+++ b/src/unreal32.c
@@ -1362,6 +1362,13 @@ void anope_cmd_global(char *source, const char *fmt, ...)
send_token("GLOBOPS", "]"), buf);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "%s :%s",
+ send_token("GLOBOPS", "]"), fmt);
+}
+
/* SQLINE */
/*
** parv[0] = sender
diff --git a/src/viagra.c b/src/viagra.c
index f95ef91f6..92cd0f073 100644
--- a/src/viagra.c
+++ b/src/viagra.c
@@ -1671,4 +1671,10 @@ void anope_cmd_jupe(char *jserver, char *who, char *reason)
new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
}
+/* GLOBOPS - to handle old WALLOPS */
+void anope_cmd_global_legacy(char *source, char *fmt)
+{
+ send_cmd(source ? source : ServerName, "GLOBOPS :%s", fmt);
+}
+
#endif