Add /OBITS command showing obituaries for long-time BitchX friends.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@230 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-02-21 22:29:34 +00:00
parent 5da6c807c2
commit e99861dbfb
2 changed files with 45 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2c01] [Changes 1.2c01]
* Add /OBITS command, shows obituaries for some BitchX friends. (caf)
* Fix abuses of the RESIZE macro. Reported by nenolod. (caf) * Fix abuses of the RESIZE macro. Reported by nenolod. (caf)
* Clears up a crash and some build warnings in the acro plugin. (caf) * Clears up a crash and some build warnings in the acro plugin. (caf)

View File

@@ -168,6 +168,7 @@ AJoinList *ajoin_list = NULL;
* etc. Neato. This list MUST be sorted. * etc. Neato. This list MUST be sorted.
*/ */
BUILT_IN_COMMAND(obits);
BUILT_IN_COMMAND(debug_user); BUILT_IN_COMMAND(debug_user);
BUILT_IN_COMMAND(debugmsg); BUILT_IN_COMMAND(debugmsg);
BUILT_IN_COMMAND(debughook); BUILT_IN_COMMAND(debughook);
@@ -501,6 +502,7 @@ IrcCommand irc_command[] =
{ "NSLOOKUP", "NSLookup", nslookup, 0, "%Y<%nhostname%Y>%n\n- Returns the IP adress and IP number for %Y<%nhostname%Y>%n" }, { "NSLOOKUP", "NSLookup", nslookup, 0, "%Y<%nhostname%Y>%n\n- Returns the IP adress and IP number for %Y<%nhostname%Y>%n" },
{ "NWHOIS", NULL, nwhois, 0, "%Y<%Cnick|channel%Y>%n\n- Shows internal statistics for %Y<%Cnick%Y>%n" }, { "NWHOIS", NULL, nwhois, 0, "%Y<%Cnick|channel%Y>%n\n- Shows internal statistics for %Y<%Cnick%Y>%n" },
{ "NWHOWAS", NULL, whowas, 0, "- Displays internal whowas info for all channels. This information expires after 20 minutes for users on internal list, 10 minutes for others" }, { "NWHOWAS", NULL, whowas, 0, "- Displays internal whowas info for all channels. This information expires after 20 minutes for users on internal list, 10 minutes for others" },
{ "OBITS", NULL, obits, 0, "- Displays obituaries for some BitchX friends who have left us" },
{ "OFFERS", "Offers", do_offers, 0, NULL }, { "OFFERS", "Offers", do_offers, 0, NULL },
{ "ON", NULL, oncmd, 0, scripting_command }, { "ON", NULL, oncmd, 0, scripting_command },
{ "OOPS", NULL, do_oops, SERVERREQ, "%Y<%Cnick%Y>%n\n- Sends a oops message to last recipient of a message and sends the correct message to %Y<%Cnick%Y>%n" }, { "OOPS", NULL, do_oops, SERVERREQ, "%Y<%Cnick%Y>%n\n- Sends a oops message to last recipient of a message and sends the correct message to %Y<%Cnick%Y>%n" },
@@ -840,6 +842,47 @@ Mailing list is at <bitchx-devel@lists.sourceforge.net>\n";
#endif #endif
} }
BUILT_IN_COMMAND(obits)
{
charset_ibmpc();
put_it("%s", convert_output_format("%P<><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>---%p<>%P--%p<><70>%P-%p<><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>---%K<>%p--<2D>%K<>-%p<><70><EFBFBD>%K<><4B><EFBFBD><EFBFBD>-%p<>-%K<><4B>---%K -- -%n", NULL, NULL));
put_it("%s", convert_output_format("%P|%n ", NULL, NULL));
put_it("%s", convert_output_format("%P<>%n From its humble beginnings to the latest release, BitchX has always been", NULL, NULL));
put_it("%s", convert_output_format("%P<>%n about community. Over the years, a handful of people have voluntarily ", NULL, NULL));
put_it("%s", convert_output_format("%P|%n contributed a great deal of time and energy to the project by writing ", NULL, NULL));
put_it("%s", convert_output_format("%p:%n scripts, providing support, troubleshooting, patches, enhancements - or ", NULL, NULL));
put_it("%s", convert_output_format("%P|%n simply making BitchX a fun thing to be involved with. With such a long ", NULL, NULL));
put_it("%s", convert_output_format("%p'%n history, we have had our losses. Several of the friends that we came to ", NULL, NULL));
put_it("%s", convert_output_format("%p|%n regard as a kind of extended family left us before their time, and we would", NULL, NULL));
put_it("%s", convert_output_format("%P<>%n like to remember them here.", NULL, NULL));
put_it("%s", convert_output_format("%p<>%n ", NULL, NULL));
put_it("%s", convert_output_format("%p:%n %P<>%n ", NULL, NULL));
put_it("%s", convert_output_format("%K|%n %P<>%n Jason Higham, known to his friends on IRC as ", NULL, NULL));
put_it("%s", convert_output_format("%p|%n %P<>%n %Wssshooter%n, left us on July 11th, 2004. He is ", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n remembered fondly by his family and friends. ", NULL, NULL));
put_it("%s", convert_output_format("%K|%n %P<>%n", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n On the 18th of July, 2004, our dearly missed", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n friend Miles Wilson (also known as %Wsellfone%n)", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n passed away in his sleep.", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n Amy Elizabeth Haskew died on June 16, 2009 at", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n 34. Goodbye %Wturtlex%n, you'll always be", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n remembered as someone very kind, and wise beyond", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n your years.", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n RIP Marc Casillo aka %Wfrash%n [25/Nov/1970 - 28/Sep/2009] ", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n Matthew Luberto, known to his many friends online", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n as %Wvoid%n, passed away in his sleep on February 16, ", NULL, NULL));
put_it("%s", convert_output_format(" %P<>%n 2013 in his 38th year. We'll miss you, void.", NULL, NULL));
put_it(" ");
#if defined(LATIN1)
charset_lat1();
#elif defined(CHARSET_CUSTOM)
charset_cst();
#endif
}
BUILT_IN_COMMAND(dcc_stat_comm) BUILT_IN_COMMAND(dcc_stat_comm)
{ {
dcc_stats(NULL, NULL); dcc_stats(NULL, NULL);