Advertisement
Techman

ircd_loveserv by Trixar_za for Anope ~1.8

Dec 21st, 2017
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 22.96 KB | None | 0 0
  1. #include "module.h"
  2.  
  3. #define AUTHOR "Trixar_za"
  4. #define VERSION "1.0"
  5.  
  6. int my_privmsg(char *source, int ac, char **av);
  7. CommandHash *LoveServ_cmdTable[MAX_CMD_HASH];
  8.  
  9. void addClient(char *nick, char *realname);
  10. void addMessageList(void);
  11. void delClient(void);
  12. char *s_LoveServ = "LoveServ";
  13. void LoveServ(User * u, char *buf);
  14.  
  15.  
  16. /************/
  17. /* Commands */
  18. /************/
  19. int do_help(User *u);
  20. int do_kiss(User *u);
  21. int do_kinky(User *u);
  22. int do_gift(User *u);
  23. int do_about(User *u);
  24. int do_version(User *u);
  25. int do_apology(User *u);
  26. int do_lovenote(User *u);
  27. int do_thanks(User *u);
  28. int do_hug(User *u);
  29. int do_admirer(User *u);
  30. int do_ljoin(User *u);
  31.  
  32.  
  33. /****************************/
  34. /* Basic Required Functions */
  35. /****************************/
  36. int AnopeInit(int argc, char **argv)
  37. {
  38.     Message *msg = NULL;
  39.     int status;
  40. #ifdef IRC_UNREAL32
  41.      msg = createMessage("PRIVMSG", my_privmsg);
  42.     if (UseTokens) {
  43.      msg = createMessage("!", my_privmsg);
  44.     }
  45. #else
  46.     msg = createMessage("PRIVMSG", my_privmsg);
  47. #endif
  48.     status = moduleAddMessage(msg, MOD_HEAD);
  49.     if (status == MOD_ERR_OK) {
  50.         addClient(s_LoveServ, "meow!");
  51.         addMessageList();
  52.     }
  53.     moduleAddAuthor(AUTHOR);
  54.     moduleAddVersion(VERSION);
  55.     alog("ircd_LoveServ.so: loaded, message status [%d]", status);
  56.     return MOD_CONT;
  57. }
  58.  
  59. void AnopeFini(void)
  60. {
  61.     delClient();
  62. }
  63.  
  64. int my_privmsg(char *source, int ac, char **av)
  65. {
  66.     User *u;
  67.     char *s;
  68.  
  69.     /* First, some basic checks */
  70.     if (ac != 2)
  71.         return MOD_CONT;        /* bleh */
  72.     if (!(u = finduser(source))) {
  73.         return MOD_CONT;
  74.     }                           /* non-user source */
  75.     if (*av[0] == '#') {
  76.         return MOD_CONT;
  77.     }
  78.     /* Channel message */
  79.     /* we should prolly honour the ignore list here, but I cba for this... */
  80.     s = strchr(av[0], '@');
  81.     if (s) {
  82.         *s++ = 0;
  83.         if (stricmp(s, ServerName) != 0)
  84.             return MOD_CONT;
  85.     }
  86.     if ((stricmp(av[0], s_LoveServ)) == 0) {     /* its for US! */
  87.         LoveServ(u, av[1]);
  88.         return MOD_STOP;
  89.     } else {                    /* ok it isnt us, let the old code have it */
  90.         return MOD_CONT;
  91.     }
  92. }
  93.  
  94. void addClient(char *nick, char *realname)
  95. {
  96.     anope_cmd_bot_nick(nick, "LoveServ", ServiceHost, "Network Love Service", "+");
  97.  
  98. }
  99.  
  100. void delClient(void)
  101. {
  102.     anope_cmd_quit(s_LoveServ, "QUIT :Powering Off");
  103. }
  104.  
  105. /********************/
  106. /* Command Creation */
  107. /********************/
  108. void addMessageList(void)
  109. {
  110.     Command *c;
  111.     c = createCommand("about", do_about, NULL, -1, -1, -1, -1, -1);
  112.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  113.     c = createCommand("gift", do_gift, NULL, -1, -1, -1, -1, -1);
  114.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  115.     c = createCommand("kiss", do_kiss, NULL, -1, -1, -1, -1, -1);
  116.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  117.     c = createCommand("kinky", do_kinky, NULL, -1, -1, -1, -1, -1);
  118.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  119.     c = createCommand("hug", do_hug, NULL, -1, -1, -1, -1, -1);
  120.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  121.     c = createCommand("admirer", do_admirer, NULL, -1, -1, -1, -1, -1);
  122.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  123.     c = createCommand("note", do_lovenote, NULL, -1, -1, -1, -1, -1);
  124.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  125.     c = createCommand("apology", do_apology, NULL, -1, -1, -1, -1, -1);
  126.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  127.     c = createCommand("thanks", do_thanks, NULL, -1, -1, -1, -1, -1);
  128.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  129.     c = createCommand("join", do_ljoin, NULL, -1, -1, -1, -1, -1);
  130.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  131.     c = createCommand("version", do_version, NULL, -1, -1, -1, -1, -1);
  132.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  133.     c = createCommand("help", do_help, NULL, -1, -1, -1, -1, -1);
  134.     moduleAddCommand(LoveServ_cmdTable, c, MOD_UNIQUE);
  135. }
  136.  
  137. /*****************************************************************************/
  138.  
  139. /*************************/
  140. /* Main LoveServ Routine */
  141. /*************************/
  142. void LoveServ(User * u, char *buf)
  143. {
  144.     char *cmd, *s;
  145.  
  146.     cmd = strtok(buf, " ");
  147.  
  148.     if (!cmd) {
  149.         return;
  150.     } else if (stricmp(cmd, "\1PING") == 0) {
  151.         if (!(s = strtok(NULL, "")))
  152.             s = "\1";
  153.         notice(s_LoveServ, u->nick, "\1PING %s", s);
  154.     } else if (skeleton) {
  155.         notice_lang(s_LoveServ, u, SERVICE_OFFLINE, s_LoveServ);
  156.     } else {
  157.         mod_run_cmd(s_LoveServ, u, LoveServ_cmdTable, cmd);
  158.     }
  159. }
  160.  
  161. /*********/
  162. /* About */
  163. /*********/
  164. int do_about(User * u)
  165. {
  166.     notice(s_LoveServ, u->nick, "\2LoveServ\2 is a fun module to send presents and messages to loved ones on IRC.");
  167.     return MOD_CONT;
  168. }
  169.  
  170. /********/
  171. /* Gift */
  172. /********/
  173. int do_gift(User * u)
  174. {
  175.     char *target = strtok(NULL, "");
  176.     int giftnum = 1 + rand() % 4;
  177.     if (!target)
  178.       return MOD_CONT;
  179.     if (!finduser(target)) {
  180.       notice(s_LoveServ, u->nick, "No target nick provided. See /msg LoveServ HELP Gift");
  181.       return MOD_CONT;
  182.     }
  183.     if (giftnum == 1) {
  184.       notice(s_LoveServ, target, "%s has sent you this beautiful rose! 3--<--<--<{4@", u->nick);
  185.     }
  186.     if (giftnum == 2) {
  187.       notice(s_LoveServ, target, "%s would like you to have this YUMMY box of chocolates!", u->nick);
  188.     }
  189.     if (giftnum == 3) {
  190.       notice(s_LoveServ, target, "%s would like you to have this big YUMMY bag of heart shaped candies!", u->nick);
  191.     }
  192.     if (giftnum == 4) {
  193.       notice(s_LoveServ, target, "%s would like you to have this sexy pair of underwear!", u->nick);
  194.     }
  195.     notice(s_LoveServ, u->nick, "Your gift has been sent to %s!", target);
  196.     return MOD_CONT;
  197. }
  198.  
  199. /*********/
  200. /* Kinky */
  201. /*********/
  202. int do_kinky(User * u)
  203. {
  204.     char *target = strtok(NULL, "");
  205.     int kinkynum = 1 + rand() % 4;
  206.     if (!target)
  207.       return MOD_CONT;
  208.     if (!finduser(target)) {
  209.       notice(s_LoveServ, u->nick, "No target nick provided. See /msg LoveServ HELP Kinky");
  210.       return MOD_CONT;
  211.     }
  212.     if (kinkynum == 1) {
  213.       notice(s_LoveServ, target, "%s pours whipped cream all over you and asks shyly, Do you want me to lick it off?", u->nick);
  214.     }
  215.     if (kinkynum == 2) {
  216.       notice(s_LoveServ, target, "%s ties you to the bed with silk scarfs, lights a candle, drips some of the hot wax on you and then quickly runs a ice cube over the same spot - mmmmm, nice :D", u->nick);
  217.     }
  218.     if (kinkynum == 3) {
  219.       notice(s_LoveServ, target, "%s pours chocolate cream all over you and asks shyly, Do you want me to lick it off?", u->nick);
  220.     }
  221.     if (kinkynum == 4) {
  222.       notice(s_LoveServ, target, "%s slowly undresses you, handcuffs themselves to the bed and says: Come and get me! ;)", u->nick);
  223.     }
  224.     notice(s_LoveServ, u->nick, "You just did something kinky to %s!", target);
  225.     return MOD_CONT;
  226. }
  227.  
  228. /********/
  229. /* Kiss */
  230. /********/
  231. int do_kiss(User * u)
  232. {
  233.     char *target = strtok(NULL, "");
  234.     int kissnum = 1 + rand() % 25;
  235.     if (!target)
  236.       return MOD_CONT;
  237.     if (!finduser(target)) {
  238.       notice(s_LoveServ, u->nick, "No target nick provided. See /msg LoveServ HELP Kiss");
  239.       return MOD_CONT;
  240.     }
  241.     if (kissnum == 1) {
  242.       notice(s_LoveServ, target, "%s gives you a SLoW... LoNG... DeeP... PeNeTRaTiNG... ToNSiL-TiCKLiNG... HaiR STRaiGHTeNiNG... Toe-CuRLiNG... NeRVe-JaNGLiNG... LiFe-aLTeRiNG... FaNTaSY-CauSiNG... I JuST SaW GoD!... GoSH, DiD MY CLoTHeS FaLL oFF?... YeS, i'M GLaD I CaMe oN iRC... KiSS oN Da LiPS!!!", u->nick);
  243.     }
  244.     if (kissnum == 2) {
  245.       notice(s_LoveServ, target, "%s gives you a Heart stopping, expolsion starting, Really Long... and extra deep... super Duper... and really hot... peck on the cheek", u->nick);
  246.     }
  247.     if (kissnum == 3) {
  248.       notice(s_LoveServ, target, "%s gives you a Sloppy Wet Kiss =8-fi", u->nick);
  249.     }
  250.     if (kissnum == 4) {
  251.       notice(s_LoveServ, target, "%s gives you a Really Hot... Long Super And Really Erotic... Earth Shattering, Soul Burning, Oh My Gawd If I Stop Now I'll Die, Better Than Heaven, Yet Hotter Than Hell, Groping, Don't Stop Touching Me, Blood Boiling, OhOhOhOhGawdOhGawdOhGawd, Soul Stealing, Dream Making, Close To XRated, Hand Trembling, Knee Buckling, Heart Stopping, Body Tingling, Earth Quake Making, Passion Exploding, Wet, Deep, Hard, Long, Lingering, Kiss On The Lips!", u->nick);
  252.     }
  253.     if (kissnum == 5) {
  254.       notice(s_LoveServ, target, "%s gives you a long, slow, warm kiss that lasts 3 days!!!!", u->nick);
  255.     }
  256.     if (kissnum == 6) {
  257.       notice(s_LoveServ, target, "%s ,gives you a Really Erotic Earth Shattering, Soul Burning, Oh My Gawd If I Stop Now I'll Die, Don't Stop Touching Me, Blood Boiling, OhGawdOhGawdOhGawd, Soul Stealing, Dream Making, XRated, Hand Trembling, Knee Buckling, Heart Stopping, Body Tingling, Earth Quake Making, Passion Exploding, Wet, Deep, Hard, LONG KISS", u->nick);
  258.     }
  259.     if (kissnum == 7) {
  260.       notice(s_LoveServ, target, "%s wraps you into an earth-rocking-balance-tipping-scale-swaying-firework-making-party-busting-blood-boiling-knee-knocking-spine-tingling-screaming-sound-barrier-busting-speed-of-light-breaking-orbit-tilting-knock-you-into-next-year-and-pull-you-back-for-a-not-her-week-of-passion-and-heaven-on-earth-where-everything-not-just-the-clouds-have-a-silver-lining kiss!", u->nick);
  261.     }
  262.     if (kissnum == 8) {
  263.       notice(s_LoveServ, target, "%s takes you into their arms and kisses you passionately", u->nick);
  264.     }
  265.     if (kissnum == 9) {
  266.       notice(s_LoveServ, target, "%s runs up and gives you a big smoooooooooooochers!!!", u->nick);
  267.     }
  268.     if (kissnum == 10) {
  269.       notice(s_LoveServ, target, "%s takes you in their arms, tilts your head upwards, looks deep in your eyes and plants an ear smokin... toe curling... hair straightening... eyerollin... complexion clearing... finger tingling... knee knocking... teeth loosening... cold shower needing... divorce lawyer looking kiss right smack dab on your mouth!", u->nick);
  270.     }
  271.     if (kissnum == 11) {
  272.       notice(s_LoveServ, target, "%s says after kissing you... I climbed up the door, and shut the stairs... I said my clothes, and pulled off my prayers... I shut off my bed, and climbed in to the light... All because you kissed me!!! **Smoooooches** WOW! What a kiss!!", u->nick);
  273.     }
  274.     if (kissnum == 12) {
  275.       notice(s_LoveServ, target, "%s gives you a –ÍÍp,ßÍÒ߸£,Ü¸Òg ÜwÔßÜÔÒg, hÍÂÆÜ ßÜppÔÒg, kÒÍÍ ßhÂkÔÒg, ££ vÍÆ fl–• ÜÔÒgÍ£ÔÒg, hÍ– ÔÒ ÜhÍ ßk•, kÔßß!", u->nick);
  276.     }
  277.     if (kissnum == 13) {
  278.       notice(s_LoveServ, target, "%s gives you a hot, juicy, where'd you learn to do that, oh my god that feels so good, put your hand here, mmmmm and your tongue here, how can you do this to me, even my eyeballs are sweating, you have no idea how bad I want you, mmmm chills everywhere, don't want to be good, just want to be bad, can I get closer, I wanna feel, I'm begging, just be with me forever kiss!", u->nick);
  279.     }
  280.     if (kissnum == 14) {
  281.       notice(s_LoveServ, target, "%s gives you a passionate kiss on the lips, slipping their tongue inside and slowly slips their hands into your shirt... feeling the warmth of your chest against their palm!", u->nick);
  282.     }
  283.     if (kissnum == 15) {
  284.       notice(s_LoveServ, target, "%s sends you a thousand kisses all over your sweet mouth!!", u->nick);
  285.     }
  286.     if (kissnum == 16) {
  287.       notice(s_LoveServ, target, "%s blows a kiss to you", u->nick);
  288.     }
  289.     if (kissnum == 17) {
  290.       notice(s_LoveServ, target, "%s gives you a warm passionate *kiss*", u->nick);
  291.     }
  292.     if (kissnum == 18) {
  293.       notice(s_LoveServ, target, "%s takes you into their arms and kisses you wildly, deeply, desperately seeking, exploring...whew", u->nick);
  294.     }
  295.     if (kissnum == 19) {
  296.       notice(s_LoveServ, target, "%s gives you a Super Tight, Really Super Erotic, Groping, Fondling, Earth Shattering, Sonic Boom, Oh Gawd If You Stop I'll Die, Your Better Than Heaven, Yet Hotter Than Hell, Watch Where Ya Stick Yer Hands, Super Huge, Oh Gawd Oh Gawd Oh Gawd, Don't Ya Dare Stop Touching Me, Knees Are Shaking, Earth Is Trembling, My Heart Has Stop Beating, Passionate, Knees Shaking, Lots of Goosebumps, Was That The Ground Moving, Passionate, Wet, Deep, Lingering Kiss", u->nick);
  297.     }
  298.     if (kissnum == 20) {
  299.       notice(s_LoveServ, target, "%s walks over to you and gives you a passionate kiss! §smoooch§", u->nick);
  300.     }
  301.     if (kissnum == 21) {
  302.       notice(s_LoveServ, target, "%s brushes your hair back, traces your lips gently with their finger, staring into your eyes... and then kisses you", u->nick);
  303.     }
  304.     if (kissnum == 22) {
  305.       notice(s_LoveServ, target, "%s holds your soft face in their hands, looks deep into your sparkling eyes, softly brushes their lips with yours and slowly kisses you", u->nick);
  306.     }
  307.     if (kissnum == 23) {
  308.       notice(s_LoveServ, target, "%s reaches out and grabs you by the hand, turns you towards them, then reaches up and runs their finger down your cheek, closes their eyes and gently kisses you passionately on the lips", u->nick);
  309.     }
  310.     if (kissnum == 24) {
  311.       notice(s_LoveServ, target, "%s kisses you on the cheek", u->nick);
  312.     }
  313.     if (kissnum == 25) {
  314.       notice(s_LoveServ, target, "%s kisses you smack dab on the lips!", u->nick);
  315.     }
  316.     notice(s_LoveServ, u->nick, "You have virtually kissed %s!", target);
  317.     return MOD_CONT;
  318. }
  319.  
  320. /*******/
  321. /* Hug */
  322. /*******/
  323. int do_hug(User * u)
  324. {
  325.     char *target = strtok(NULL, "");
  326.     int hugnum = 1 + rand() % 18;
  327.     if (!target)
  328.       return MOD_CONT;
  329.     if (!finduser(target)) {
  330.       notice(s_LoveServ, u->nick, "No target nick provided. See /msg LoveServ HELP Hug");
  331.       return MOD_CONT;
  332.     }
  333.     if (hugnum == 1) {
  334.       notice(s_LoveServ, target, "%s has sent you a *BIG WARM HUG*!", u->nick);
  335.     }
  336.     if (hugnum == 2) {
  337.       notice(s_LoveServ, target, "%s hugs you so tight and warm that you have to tap them on the shoulder and mention that you have to breathe!", u->nick);
  338.     }
  339.     if (hugnum == 3) {
  340.       notice(s_LoveServ, target, "%s runs over to you, puts their arms around you, squeezes you real tight, picks you up to swing you around but falls over instead *THUMP*", u->nick);
  341.     }
  342.     if (hugnum == 4) {
  343.       notice(s_LoveServ, target, "%s picks you up 'I wanna hug ya and squeeze ya!' §HUG§  §SQUEEZE§", u->nick);
  344.     }
  345.     if (hugnum == 5) {
  346.       notice(s_LoveServ, target, "%s wraps their arms around you! §§SQUEEZE§§", u->nick);
  347.     }
  348.     if (hugnum == 6) {
  349.       notice(s_LoveServ, target, "%s runs up and §§hugs§§ you!", u->nick);
  350.     }
  351.     if (hugnum == 7) {
  352.       notice(s_LoveServ, target, "%s *H˚gß*H˚gß*H˚gß*H˚gß*H˚gß*H˚gß* you!", u->nick);
  353.     }
  354.     if (hugnum == 8) {
  355.       notice(s_LoveServ, target, "%s HUGS this very SPECIAL person!", u->nick);
  356.     }
  357.     if (hugnum == 9) {
  358.       notice(s_LoveServ, target, "%s hugs this wonderful SPECIAL PERSON!", u->nick);
  359.     }
  360.     if (hugnum == 10) {
  361.       notice(s_LoveServ, target, "%s Hµgß Hµgß Hµgß Hµgß Hµgß Hµgß Hµgß Hµgß YOU!", u->nick);
  362.     }
  363.     if (hugnum == 11) {
  364.       notice(s_LoveServ, target, "%s hugs you and says gee your a such a terrific person! *g*", u->nick);
  365.     }
  366.     if (hugnum == 12) {
  367.       notice(s_LoveServ, target, "%s hugs this wonderful SPECIAL PERSON!", u->nick);
  368.     }
  369.     if (hugnum == 13) {
  370.       notice(s_LoveServ, target, "%s me sneaks up behind you and gives a big hug suprise!", u->nick);
  371.     }
  372.     if (hugnum == 14) {
  373.       notice(s_LoveServ, target, "%s hugs you so by surprise, it mixes you all up!", u->nick);
  374.     }
  375.     if (hugnum == 15) {
  376.       notice(s_LoveServ, target, "%s luvs to hug ya and ß Q ‹     Z » YA!", u->nick);
  377.     }
  378.     if (hugnum == 16) {
  379.       notice(s_LoveServ, target, "%s hugs'n hugs'n hugs'n hugs'n hugs'n hugs'n hugs'n hugs'n hugs'n hugs'n hugs 'n hugs'n hugs'n hugs'n YA!!!", u->nick);
  380.     }
  381.     if (hugnum == 17) {
  382.       notice(s_LoveServ, target, "%s *snuggle*wuggles*snurfle*wurfles*huggle*just*down*right*bear*HUGS* you!", u->nick);
  383.     }
  384.     if (hugnum == 18) {
  385.       notice(s_LoveServ, target, "%s has sent you a uber wild and super tight *HUG*!", u->nick);
  386.     }
  387.     notice(s_LoveServ, u->nick, "%s has received your hug! :)", target);
  388.     return MOD_CONT;
  389. }
  390.  
  391. /***********/
  392. /* Admirer */
  393. /***********/
  394. int do_admirer(User * u)
  395. {
  396.     char *target = strtok(NULL, "");
  397.     if (!target)
  398.       return MOD_CONT;
  399.     if (!finduser(target)) {
  400.       notice(s_LoveServ, u->nick, "No target nick provided. See /msg LoveServ HELP Admirer");
  401.       return MOD_CONT;
  402.     }
  403.     notice(s_LoveServ, u->nick, "Secret admirer sent to %s :)", target);
  404.     notice(s_LoveServ, target, "You have a secret admirer! ;)");
  405.     return MOD_CONT;
  406. }
  407.  
  408. /********/
  409. /* Note */
  410. /********/
  411. int do_lovenote(User * u)
  412. {
  413.     char *target = strtok(NULL, " ");
  414.     char *message = strtok(NULL, "");
  415.  
  416.     if (!target)
  417.       return MOD_CONT;
  418.     if (!finduser(target)) {
  419.       notice(s_LoveServ, u->nick, "No target nick provided. See /msg LoveServ HELP Note");
  420.       return MOD_CONT;
  421.     }
  422.     notice(s_LoveServ, u->nick, "Your lovenote to %s has been sent! :)", target);
  423.     notice(s_LoveServ, target, "%s has sent you a Love Note which reads: \2%s\2", u->nick, message);
  424.     return MOD_CONT;
  425. }
  426.  
  427. /***********/
  428. /* Apology */
  429. /***********/
  430. int do_apology(User * u)
  431. {
  432.     char *target = strtok(NULL, " ");
  433.     char *message = strtok(NULL, "");
  434.  
  435.     if (!target)
  436.       return MOD_CONT;
  437.     if (!finduser(target)) {
  438.       notice(s_LoveServ, u->nick, "No target nick provided. See /msg LoveServ HELP Apology");
  439.       return MOD_CONT;
  440.     }
  441.     notice(s_LoveServ, u->nick, "Your apology has been sent to %s", target);
  442.     notice(s_LoveServ, target, "%s is sorry, and would like to apologise for \2%s\2", u->nick, message);
  443.     return MOD_CONT;
  444. }
  445.  
  446. /**********/
  447. /* Thanks */
  448. /**********/
  449. int do_thanks(User * u)
  450. {
  451.     char *target = strtok(NULL, " ");
  452.     char *message = strtok(NULL, "");
  453.  
  454.     if (!target)
  455.       return MOD_CONT;
  456.     if (!finduser(target)) {
  457.       notice(s_LoveServ, u->nick, "No target nick provided. See /msg LoveServ HELP Thanks");
  458.       return MOD_CONT;
  459.     }
  460.     notice(s_LoveServ, u->nick, "Your Thank You has been sent to %s", target);
  461.     notice(s_LoveServ, target, "%s wishes to thank you for \2%s\2", u->nick, message);
  462.     return MOD_CONT;
  463. }
  464.  
  465. /********/
  466. /* JOIN */
  467. /********/
  468. int do_ljoin(User *u)
  469. {
  470.     char *chan = strtok(NULL, " ");
  471.     char *cmd = strtok(NULL, " ");
  472.  
  473.     if (!chan || !cmd)
  474.         return MOD_CONT;
  475.  
  476.     if (!stricmp(cmd, "ON")){
  477.         send_cmd(s_LoveServ, "join %s", chan);
  478.     } else if (!stricmp(cmd, "OFF")){
  479.         send_cmd(s_LoveServ, "part %s", chan);
  480.     } else {
  481.         notice(s_LoveServ, u->nick, "\2/msg LoveServ HELP JOIN for more information");
  482.     }
  483.     return MOD_CONT;
  484. }
  485.  
  486. /***********/
  487. /* Version */
  488. /***********/
  489. int do_version(User * u)
  490. {
  491.     notice(s_LoveServ, u->nick, "\2LoveServ's Version Information\2");
  492.     notice(s_LoveServ, u->nick, "LoveServ's Version: %s", VERSION);
  493.     notice(s_LoveServ, u->nick, "LoveServ's Origional Author: Shmad <shmad@neostats.net>");
  494.     notice(s_LoveServ, u->nick, "LoveServ was ported by: Vorex <vorex@abducted.us>");
  495.     notice(s_LoveServ, u->nick, "Totally Revamped by: Trixar_za <Trixarian@Gmail.com>");
  496.     return MOD_CONT;
  497. }
  498.  
  499. /********/
  500. /* Help */
  501. /********/
  502. int do_help(User *u){
  503.     char *cmd = strtok(NULL, " ");
  504.     if (cmd){
  505.         if (!stricmp(cmd, "about")){
  506.             notice(s_LoveServ, u->nick, "\2LoveServ\2 is a fun module to send presents and ");
  507.             notice(s_LoveServ, u->nick,"messages to loved ones on IRC.");
  508.            return MOD_CONT;
  509.        }
  510.         if (!stricmp(cmd, "gift")){
  511.             notice(s_LoveServ, u->nick, "Syntax: \2GIFT <NICK>\2");
  512.             notice(s_LoveServ, u->nick, "");
  513.             notice(s_LoveServ, u->nick, "Sends a random gift of love to that special someone on IRC.");
  514.            return MOD_CONT;
  515.        }
  516.         if (!stricmp(cmd, "kiss")){
  517.             notice(s_LoveServ, u->nick, "Syntax: \2KISS <NICK>\2");
  518.             notice(s_LoveServ, u->nick, "");
  519.             notice(s_LoveServ, u->nick, "Sends a random mind-blowing kiss to that special someone on IRC.");
  520.            return MOD_CONT;
  521.        }
  522.         if (!stricmp(cmd, "hug")){
  523.             notice(s_LoveServ, u->nick, "Syntax: \2HUG <NICK>\2");
  524.             notice(s_LoveServ, u->nick, "");
  525.             notice(s_LoveServ, u->nick, "Sends a random hug to someone on IRC.");
  526.            return MOD_CONT;
  527.        }
  528.         if (!stricmp(cmd, "kinky")){
  529.             notice(s_LoveServ, u->nick, "Syntax: \2KINKY <NICK>\2");
  530.             notice(s_LoveServ, u->nick, "");
  531.             notice(s_LoveServ, u->nick, "Sends a random kinky act to that special someone on IRC.");
  532.            return MOD_CONT;
  533.        }
  534.         if (!stricmp(cmd, "admirer")){
  535.             notice(s_LoveServ, u->nick, "Syntax: \2ADMIRER <NICK>\2");
  536.             notice(s_LoveServ, u->nick, "");
  537.                 notice(s_LoveServ, u->nick,"Tell someone on IRC they have a SECRET Admirer!");
  538.            return MOD_CONT;
  539.        }
  540.         if (!stricmp(cmd, "note")){
  541.             notice(s_LoveServ, u->nick, "Syntax: \2NOTE <NICK> I love you dearly.\2");
  542.             notice(s_LoveServ, u->nick, "");
  543.             notice(s_LoveServ, u->nick, "Sends that special someone a love note.");
  544.            return MOD_CONT;
  545.        }
  546.         if (!stricmp(cmd, "apology")){
  547.             notice(s_LoveServ, u->nick, "Syntax: \2APOLOGY <NICK> deleting all those songs\2");
  548.             notice(s_LoveServ, u->nick, "");
  549.             notice(s_LoveServ, u->nick, "Sends an Apology to someone");
  550.            return MOD_CONT;
  551.        }
  552.         if (!stricmp(cmd, "thanks")){
  553.             notice(s_LoveServ, u->nick, "Syntax: \2THANKS <NICK> uploading those songs\2");
  554.             notice(s_LoveServ, u->nick,"");
  555.             notice(s_LoveServ, u->nick, "Sends a thank you message to someone");
  556.            return MOD_CONT;
  557.        }
  558.         if (!stricmp(cmd, "join")){
  559.             notice(s_LoveServ, u->nick, "Syntax: \2JOIN <CHAN> <ON|OFF>\2");
  560.             notice(s_LoveServ, u->nick, "");
  561.             notice(s_LoveServ, u->nick,"Joins or Parts LoveServ from a channel.");
  562.            return MOD_CONT;
  563.        }
  564.         if (!stricmp(cmd, "version")){
  565.             notice(s_LoveServ, u->nick, "Syntax: \2VERSION\2");
  566.             notice(s_LoveServ, u->nick, "");
  567.             notice(s_LoveServ, u->nick,"Show LoveServ's current version");
  568.            return MOD_CONT;
  569.        }
  570.     }
  571.  
  572. notice(s_LoveServ, u->nick, "LoveServ is a fun module to send presents and messages to loved ones on IRC.");
  573. notice(s_LoveServ, u->nick, "ABOUT About LoveServ");
  574. notice(s_LoveServ, u->nick, "GIFT Give someone a random gift");
  575. notice(s_LoveServ, u->nick, "KISS Give someone a random kiss");
  576. notice(s_LoveServ, u->nick, "HUG Give someone a random hug");
  577. notice(s_LoveServ, u->nick, "KINKY Give someone a random kinky act");
  578. notice(s_LoveServ, u->nick, "ADMIRER Tell someone they have a secret admirer");
  579. notice(s_LoveServ, u->nick, "NOTE Give someone a love note");
  580. notice(s_LoveServ, u->nick, "APOLOGY Give someone an apology");
  581. notice(s_LoveServ, u->nick, "THANKS Give someone a thank you");
  582. notice(s_LoveServ, u->nick, "JOIN Joins or Parts LoveServ from a channel");
  583. notice(s_LoveServ, u->nick, "VERSION Display version info");
  584.  
  585. return MOD_CONT;
  586.  
  587. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement