X-Git-Url: https://jfr.im/git/irc/thales.git/blobdiff_plain/2ace9480e5957c586cf18740a344a028e609e04a..287805aaa97f0f33e5cbc6b2ace297eb360209d5:/src/messages.c diff --git a/src/messages.c b/src/messages.c index 8d5c73f..d61791e 100644 --- a/src/messages.c +++ b/src/messages.c @@ -1,4 +1,4 @@ -/* Thales - IRC to Relational Database Gateway +/* GNU Thales - IRC to Relational Database Gateway * Copyright (C) 2002 Lucas Nussbaum * * This program is free software; you can redistribute it and/or modify @@ -128,7 +128,7 @@ static void m_quit(char *source, int ac, char **av) static void m_sjoin(char *source, int ac, char **av) { -#if defined(IRCD_SEQUANA)||defined(IRCD_BAHAMUT)||defined(IRCD_ULTIMATE)||defined(IRCD_IRCDRU) +#if defined(IRCD_BAHAMUT)||defined(IRCD_ULTIMATE)||defined(IRCD_IRCDRU) if (ac == 2) do_join(av[1], source); /* like a join */ else @@ -140,7 +140,7 @@ static void m_sjoin(char *source, int ac, char **av) static void m_svsmode(char *source, int ac, char **av) { if (*av[0] != '#') -#if defined(IRCD_SEQUANA)||defined(IRCD_BAHAMUT)||defined(IRCD_ULTIMATE)||defined(IRCD_IRCDRU)||defined(IRCD_HYBRID) +#if defined(IRCD_BAHAMUT)||defined(IRCD_ULTIMATE)||defined(IRCD_IRCDRU)||defined(IRCD_HYBRID) do_umode(av[0], av[2]); #elif defined(IRCD_UNREAL)||defined(IRCD_ULTI28) do_umode(av[0], av[1]); @@ -195,7 +195,7 @@ static void m_away(char *source, int ac, char **av) static void m_version(char *source, int ac, char **av) { if (source) - send_cmd(ServerName, "351 %s Thales %s %s", + send_cmd(ServerName, "351 %s GNU Thales %s %s", source, VERSION, ServerName); } @@ -219,7 +219,7 @@ static void m_stats(char *source, int ac, char **av) { int uptime; uptime = time(NULL) - start_time; - send_cmd(NULL, "242 %s :Thales up %d day%s, %02d:%02d:%02d", + send_cmd(NULL, "242 %s :GNU Thales up %d day%s, %02d:%02d:%02d", source, uptime / 86400, (uptime / 86400 == 1) ? "" : "s", (uptime / 3600) % 24, (uptime / 60) % 60, uptime % 60); send_cmd(NULL, "219 %s u :End of /STATS report.", source); @@ -251,12 +251,12 @@ static void m_motd(char *source, int ac, char **av) send_cmd(ServerName, "372 %s :- |_| |_| |_|\\__,_|_|\\___||___/", source); send_cmd(ServerName, "372 %s :- v. %s", source, VERSION); - send_cmd(ServerName, "372 %s :- (c)2002 Lucas Nussbaum", source); + send_cmd(ServerName, "372 %s :- (c)2002-2004 Lucas Nussbaum", source); send_cmd(ServerName, "372 %s :-", source); - send_cmd(ServerName, "372 %s :-Thales is an IRC to MySQL gateway.", + send_cmd(ServerName, "372 %s :-GNU Thales is an IRC to MySQL gateway.", source); - send_cmd(ServerName, "372 %s :- More info is available on", source); - send_cmd(ServerName, "372 %s :-http://www.lucas-nussbaum.net/thales/", + send_cmd(ServerName, "372 %s :- More info is available on", source); + send_cmd(ServerName, "372 %s :- http://www.gnu.org/software/thales/", source); send_cmd(ServerName, "376 %s :End of /MOTD command.", source); } @@ -272,7 +272,7 @@ static void m_admin(char *source, int ac, char **av) "258 %s :Written by Lucas Nussbaum ", source); send_cmd(ServerName, - "259 %s :See http://www.lucas-nussbaum.net/thales/ for more info.", + "259 %s :See http://www.gnu.org/software/thales/ for more info.", source); } @@ -369,6 +369,14 @@ static void m_sdesc(char *source, int ac, char **av) { do_sdesc(source, av[0]); } + +/* SWHOIS - forwarded */ +static void m_swhois(char *source, int ac, char **av) +{ + do_swhois(source, av[0]); +} + + #endif #if defined(IRCD_UNREAL)||defined(IRCD_ULTI28) @@ -394,7 +402,7 @@ static void m_sethost(char *source, int ac, char **av) /* REALHOST - forwarded */ static void m_realhost(char *source, int ac, char **av) { - log("NBPARAMS : %d", ac); + mylog("NBPARAMS : %d", ac); if (ac > 1) do_realhost(av[0], av[1]); else @@ -583,6 +591,10 @@ Message messages[] = { , {"SETNAME", m_setname} , + {"SWHOIS", m_swhois} + , + {"EOS", NULL} + , #endif #ifdef IRCD_HYBRID {"REALHOST", m_realhost}