summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes3
-rw-r--r--src/protocol/plexus.c6
-rw-r--r--src/protocol/ratbox.c28
-rw-r--r--version.log6
4 files changed, 33 insertions, 10 deletions
diff --git a/Changes b/Changes
index 398146015..a43a256df 100644
--- a/Changes
+++ b/Changes
@@ -49,6 +49,9 @@ Provided by Hal9000 <hal9000@musichat.net> - 2005
06/27 A Italian translations for modpack modules. [ #00]
06/25 F Updated Italian language file. [ #00]
+Provided by ThaPrince <jon@vile.com> - 2005
+09/04 F SGLINE/SQLINE for ratbox/plexus/etc needs a valid nick. [ #00]
+
Anope Version 1.7.10
--------------------
Provided by Anope Dev. <dev@anope.org> - 2005
diff --git a/src/protocol/plexus.c b/src/protocol/plexus.c
index 11f807bbc..4f7bcf0f9 100644
--- a/src/protocol/plexus.c
+++ b/src/protocol/plexus.c
@@ -770,7 +770,7 @@ moduleAddIRCDMsgs (void)
void
plexus_cmd_sqline (char *mask, char *reason)
{
- send_cmd (NULL, "RESV * %s :%s", mask, reason);
+ send_cmd (s_OperServ, "RESV * %s :%s", mask, reason);
}
void
@@ -843,7 +843,7 @@ plexus_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
void
plexus_cmd_unsqline (char *user)
{
- send_cmd (NULL, "UNRESV * %s", user);
+ send_cmd (s_OperServ, "UNRESV * %s", user);
}
void
@@ -1356,7 +1356,7 @@ plexus_cmd_nick (char *nick, char *name, char *mode)
send_cmd (NULL, "NICK %s 1 %ld %s %s %s %s %s 0 :%s", nick,
(long int) time (NULL), mode, ServiceUser, ServiceHost,
"*", ServerName, (name));
- plexus_cmd_sqline (nick, "Reserved for services");
+ send_cmd (nick, "RESV * %s :%s", nick, "Reserved for services");
}
void
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index 14081e870..461bb8e92 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -51,7 +51,7 @@ IRCDVar myIrcd[] = {
NULL, /* Mode On Reg */
NULL, /* Mode on UnReg */
NULL, /* Mode on Nick Change */
- 0, /* Supports SGlines */
+ 1, /* Supports SGlines */
1, /* Supports SQlines */
0, /* Supports SZlines */
0, /* Supports Halfop +h */
@@ -753,12 +753,20 @@ void moduleAddIRCDMsgs(void)
void ratbox_cmd_sqline(char *mask, char *reason)
{
- send_cmd(NULL, "RESV * %s :%s", mask, reason);
+ Uid *ud;
+
+ ud = find_uid(s_OperServ);
+ send_cmd((UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ),
+ "RESV * %s :%s", mask, reason);
}
void ratbox_cmd_unsgline(char *mask)
{
- /* Does not support */
+ Uid *ud;
+
+ ud = find_uid(s_OperServ);
+ send_cmd((UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ),
+ "UNXLINE * %s", mask);
}
void ratbox_cmd_unszline(char *mask)
@@ -783,7 +791,11 @@ void ratbox_cmd_svsadmin(char *server, int set)
void ratbox_cmd_sgline(char *mask, char *reason)
{
- /* does not support */
+ Uid *ud;
+
+ ud = find_uid(s_OperServ);
+ send_cmd((UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ),
+ "XLINE * %s 0 :%s", mask, reason);
}
void ratbox_cmd_remove_akill(char *user, char *host)
@@ -817,7 +829,11 @@ void ratbox_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
void ratbox_cmd_unsqline(char *user)
{
- send_cmd(NULL, "UNRESV * %s", user);
+ Uid *ud;
+
+ ud = find_uid(s_OperServ);
+ send_cmd((UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ),
+ "UNRESV * %s", user);
}
void ratbox_cmd_join(char *user, char *channel, time_t chantime)
@@ -1344,7 +1360,7 @@ void ratbox_cmd_nick(char *nick, char *name, char *mode)
(long int) time(NULL), mode, ServiceUser, ServiceHost,
ServerName, name);
}
- ratbox_cmd_sqline(nick, "Reserved for services");
+ send_cmd(UseTS6 ? nicknumbuf : nick, "RESV * %s :%s", nick, "Reserved for services");
}
void ratbox_cmd_kick(char *source, char *chan, char *user, char *buf)
diff --git a/version.log b/version.log
index cad6aaa9a..2dd1c8ceb 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="10"
-VERSION_BUILD="870"
+VERSION_BUILD="871"
# $Log$
#
+# BUILD : 1.7.10 (871)
+# BUGS :
+# NOTES : Applied two patches by ThaPrince to add the correct nicks to SQLINE/SGLINE with plexus and ratbox
+#
# BUILD : 1.7.10 (870)
# BUGS :
# NOTES : Move on, nothing to see here (typo fix in Changes)