-/* Thales - IRC to Relational Database Gateway
+/* GNU Thales - IRC to Relational Database Gateway
* Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
*
* This program is free software; you can redistribute it and/or modify
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
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]);
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);
}
{
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);
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);
}
"258 %s :Written by Lucas Nussbaum <lucas@lucas-nussbaum.net>",
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);
}
{
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)
/* 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
,
{"SETNAME", m_setname}
,
+ {"SWHOIS", m_swhois}
+ ,
+ {"EOS", NULL}
+ ,
#endif
#ifdef IRCD_HYBRID
{"REALHOST", m_realhost}