From e99861dbfb806e62528b5f159e5265d5388d80a3 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Thu, 21 Feb 2013 22:29:34 +0000 Subject: [PATCH] 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 --- Changelog | 2 ++ source/commands.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/Changelog b/Changelog index 6d39fd7..1dc6a2f 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ [Changes 1.2c01] +* Add /OBITS command, shows obituaries for some BitchX friends. (caf) + * Fix abuses of the RESIZE macro. Reported by nenolod. (caf) * Clears up a crash and some build warnings in the acro plugin. (caf) diff --git a/source/commands.c b/source/commands.c index 5dbcb35..6156f20 100644 --- a/source/commands.c +++ b/source/commands.c @@ -168,6 +168,7 @@ AJoinList *ajoin_list = NULL; * etc. Neato. This list MUST be sorted. */ +BUILT_IN_COMMAND(obits); BUILT_IN_COMMAND(debug_user); BUILT_IN_COMMAND(debugmsg); 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" }, { "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" }, + { "OBITS", NULL, obits, 0, "- Displays obituaries for some BitchX friends who have left us" }, { "OFFERS", "Offers", do_offers, 0, NULL }, { "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" }, @@ -840,6 +842,47 @@ Mailing list is at \n"; #endif } +BUILT_IN_COMMAND(obits) +{ + charset_ibmpc(); + put_it("%s", convert_output_format("%PÚÄÄÄÄÄ---%pÄ%P--%pÄÄ%P-%pÄÄÄÄÄÄ---%KÄ%p--Ä%KÄ-%pÄÄÄ%KÄÄÄÄ-%pÄ-%KÄÄ---%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) { dcc_stats(NULL, NULL);