summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--src/shadowircd.c28
-rw-r--r--version.log6
3 files changed, 31 insertions, 4 deletions
diff --git a/Changes b/Changes
index 0e1828ccc..6647bde3f 100644
--- a/Changes
+++ b/Changes
@@ -45,6 +45,7 @@ Provided by Anope Dev. <dev@anope.org> - 2005
03/07 R Removed Proxy Detector from core. [ #00]
Provided by Trystan <trystan@nomadirc.net> - 2005
+03/16 F Shadowircd nick handling and vhost changing [#321]
03/14 R Removed some old irc-services convertor ifdef's [#317]
Provided by DrStein <drstein@anope.org> - 2005
diff --git a/src/shadowircd.c b/src/shadowircd.c
index d9cd1c7d0..cb95db424 100644
--- a/src/shadowircd.c
+++ b/src/shadowircd.c
@@ -623,7 +623,7 @@ int anope_event_sjoin(char *source, int ac, char **av)
int anope_event_nick(char *source, int ac, char **av)
{
Server *s;
- User *user;
+ User *user, *u2;
if (ac == 10) {
s = findserver_uid(servlist, source);
@@ -635,12 +635,33 @@ int anope_event_nick(char *source, int ac, char **av)
anope_set_umode(user, 1, &av[3]);
}
} else {
- do_nick(source, av[0], NULL, NULL, NULL, NULL,
+ u2 = find_byuid(source);
+ do_nick((u2 ? u2->nick : source), av[0], NULL, NULL, NULL, NULL,
strtoul(av[1], NULL, 10), 0, 0, NULL, NULL);
}
return MOD_CONT;
}
+
+int anope_event_chghost(char *source, int ac, char **av)
+{
+ User *u;
+
+ if (ac != 2)
+ return MOD_CONT;
+
+ u = find_byuid(av[0]);
+ if (!u) {
+ if (debug) {
+ alog("user: CHGHOST for nonexistent user %s", av[0]);
+ }
+ return MOD_CONT;
+ }
+
+ change_user_host(u, av[1]);
+ return MOD_CONT;
+}
+
int anope_event_topic(char *source, int ac, char **av)
{
User *u;
@@ -777,10 +798,11 @@ void moduleAddIRCDMsgs(void)
m = createMessage("ADMIN", anope_event_admin); addCoreMessage(IRCD,m);
m = createMessage("ERROR", anope_event_error); addCoreMessage(IRCD,m);
m = createMessage("421", anope_event_null); addCoreMessage(IRCD,m);
- m = createMessage("ENCAP", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("ENCAP", anope_event_null); addCoreMessage(IRCD,m);
m = createMessage("SID", anope_event_sid); addCoreMessage(IRCD,m);
m = createMessage("EOB", anope_event_eos); addCoreMessage(IRCD,m);
m = createMessage("TSSYNC", anope_event_null); addCoreMessage(IRCD,m);
+ m = createMessage("SVSCLOAK", anope_event_chghost); addCoreMessage(IRCD,m);
}
diff --git a/version.log b/version.log
index f35789909..2a2c70dab 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="8"
-VERSION_BUILD="633"
+VERSION_BUILD="634"
# $Log$
#
+# BUILD : 1.7.8 (634)
+# BUGS : 321
+# NOTES : Applied Trystans patch for shadow-ircd nick changing and vhosting - there are still issues with it tho.
+#
# BUILD : 1.7.8 (633)
# BUGS : none
# NOTES : OS SET SQL ON shall warn about SQL disabled in services.conf