summaryrefslogtreecommitdiff
path: root/src/rageircd.c
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-11-24 05:14:41 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-11-24 05:14:41 +0000
commitc55942927eccc7b3bf3e5aa742acdb737b4a8989 (patch)
tree6eab5afa36993f879476f3123013bf6fd4b9953a /src/rageircd.c
parent9233f879d14728673ca82b1a7d16341e79d609df (diff)
BUILD : 1.7.6 (462) BUGS : 226 NOTES : 1. RageIRCD sends TSMODE which is part of their beta7 2. RageIRCD protocol file now has anope_cmd_chghost() 3. RageIRCD SVINFO more in line with what we get 4. Bahamut protocol file now has anope_cmd_chghost() to prevent undefined symbol messages 5. Bahamut SZLINE and UNSZLINE dealt with per documentation, left the old commands behind for now, till we decide to move our base Bahamut version forward
git-svn-id: svn://svn.anope.org/anope/trunk@462 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@316 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/rageircd.c')
-rw-r--r--src/rageircd.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/rageircd.c b/src/rageircd.c
index bbf3c6b4e..f4cc54d7e 100644
--- a/src/rageircd.c
+++ b/src/rageircd.c
@@ -641,6 +641,14 @@ void anope_cmd_vhost_off(User * u)
void anope_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
{
send_cmd(s_HostServ, "SVSMODE %s +x", nick);
+ anope_cmd_chghost(nick, vhost);
+}
+
+void anope_cmd_chghost(char *nick, char *vhost)
+{
+ if (!nick || !vhost) {
+ return;
+ }
send_cmd(ServerName, "VHOST %s %s", nick, vhost);
}
@@ -720,13 +728,13 @@ void anope_cmd_connect(int servernum)
void anope_cmd_svinfo()
{
- send_cmd(NULL, "SVINFO 5 5 0 %ld bluemoon 0", (long int) time(NULL));
+ send_cmd(NULL, "SVINFO 5 3 0 %ld bluemoon 0", (long int) time(NULL));
}
void anope_cmd_capab()
{
- /* future versions will support TSMODE */
- send_cmd(NULL, "CAPAB BURST UNCONNECT SSJ3 SN2 VHOST");
+ /* CAPAB BURST UNCONNECT ZIP SSJ3 SN2 VHOST SUID TOK1 TSMODE */
+ send_cmd(NULL, "CAPAB BURST UNCONNECT SSJ3 SN2 VHOST TSMODE");
}
void anope_cmd_server(char *servname, int hop, char *descript)
@@ -939,7 +947,7 @@ void anope_cmd_mode(char *source, char *dest, const char *fmt, ...)
}
if (ircdcap->tsmode) {
- if (uplink_capab & ircdcap->tsmode) {
+ if (uplink_capab & ircdcap->tsmode || UseTSMODE) {
send_cmd(source, "MODE %s 0 %s", dest, buf);
} else {
send_cmd(source, "MODE %s %s", dest, buf);