From: Juan B. <tu...@us...> - 2004-07-22 16:10:55
|
Update of /cvsroot/solidircd/Solid-dev/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5086/src Modified Files: Tag: Solid-030110 s_err.c s_serv.c version.c.SH Log Message: - Made a new /INFO and moved the old one to /DALINFO Index: version.c.SH =================================================================== RCS file: /cvsroot/solidircd/Solid-dev/src/version.c.SH,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** version.c.SH 13 Jul 2004 23:48:57 -0000 1.3 --- version.c.SH 22 Jul 2004 16:10:45 -0000 1.3.2.1 *************** *** 58,65 **** { "$newpackage --", ! "Based on the Bahamut Internet Relay Daemon.", ! "Copyright 2001-2004 VidGameChat IRC Network", ! " ", " ", "$package --", "Based on the original code written by Jarkko Oikarinen", --- 58,75 ---- { "$newpackage --", ! "Based on the original bahamut ircd developed by the bahamut team", ! "Copyright 1999-2004 VidGameChat IRC Network", " ", + "This program is free software; you can redistribute it and/or", + "modify it under the terms of the GNU General Public License as", + "published by the Free Software Foundation; either version 1, or", + "(at your option) any later version.", + "", + "To see the DALnet credits please type /DALINFO", + 0, + }; + + char *dalinfotext[] = + { "$package --", "Based on the original code written by Jarkko Oikarinen", Index: s_err.c =================================================================== RCS file: /cvsroot/solidircd/Solid-dev/src/s_err.c,v retrieving revision 1.14 retrieving revision 1.14.2.1 diff -C2 -d -r1.14 -r1.14.2.1 *** s_err.c 17 Jul 2004 00:41:20 -0000 1.14 --- s_err.c 22 Jul 2004 16:10:44 -0000 1.14.2.1 *************** *** 411,415 **** /* 375 RPL_MOTDSTART */ ":%s 375 %s :- %s Message of the Day - ", /* 376 RPL_ENDOFMOTD */ ":%s 376 %s :End of /MOTD command.", ! /* 377 */ NULL, /* 378 */ NULL, /* 379 */ NULL, --- 411,415 ---- /* 375 RPL_MOTDSTART */ ":%s 375 %s :- %s Message of the Day - ", /* 376 RPL_ENDOFMOTD */ ":%s 376 %s :End of /MOTD command.", ! /* 374 RPL_ENDOFDALINFO */ ":%s 377 %s :End of /DALINFO list.", /* 378 */ NULL, /* 379 */ NULL, Index: s_serv.c =================================================================== RCS file: /cvsroot/solidircd/Solid-dev/src/s_serv.c,v retrieving revision 1.30 retrieving revision 1.30.2.1 diff -C2 -d -r1.30 -r1.30.2.1 *** s_serv.c 17 Jul 2004 00:41:20 -0000 1.30 --- s_serv.c 22 Jul 2004 16:10:44 -0000 1.30.2.1 *************** *** 1217,1220 **** --- 1217,1263 ---- /* + * * m_dalinfo + * parv[0] = sender prefix + * parv[1] = servername + */ + + int m_dalinfo(aClient *cptr, aClient *sptr, int parc, char *parv[]) + { + char **text = infotext; + + static time_t last_used = 0L; + if (hunt_server(cptr,sptr,":%s DALINFO :%s",1,parc,parv) == HUNTED_ISME) + { + sendto_realops_lev(SPY_LEV, "DALINFO requested by %s (%s@%s) [%s]", + sptr->name, sptr->user->username, sptr->user->host, + sptr->user->server); + if (!IsAnOper(sptr)) + { + if (IsSquelch(sptr)) + { + sendto_one(sptr, rpl_str(RPL_ENDOFDALINFO), me.name, parv[0]); + return 0; + } + if (!MyConnect(sptr)) + return 0; + if ((last_used + MOTD_WAIT) > NOW) + return 0; + else + last_used = NOW; + } + while (*text) + sendto_one(sptr, rpl_str(RPL_INFO), + me.name, parv[0], *text++); + + sendto_one(sptr, rpl_str(RPL_INFO), me.name, parv[0], ""); + + /* I am -definately- going to come up with a replacement for this! */ + + sendto_one(sptr, rpl_str(RPL_ENDOFDALINFO), me.name, parv[0]); + } + return 0; + } + + /* * * m_info * parv[0] = sender prefix |