]>
jfr.im git - irc/quakenet/newserv.git/blob - horse/horse.c
1 #include "../control/control.h"
2 #include "../nick/nick.h"
3 #include "../channel/channel.h"
4 #include "../lib/version.h"
8 int ho_horse(void *source
, int cargc
, char **cargv
) {
9 nick
*sender
=(nick
*)source
;
16 if ((victim
=getnickbynick(cargv
[0]))!=NULL
) {
17 controlreply(victim
," _ ___,;;;^");
18 controlreply(victim
," ,;( )__, )~\\|");
19 controlreply(victim
," ;; // '--;");
20 controlreply(victim
," ' ;\\ |");
21 controlreply(sender
,"Gave %s a horse.",victim
->nick
);
22 } else if ((cp
=findchannel(cargv
[0]))!=NULL
) {
23 controlchanmsg(cp
," _ ___,;;;^");
24 controlchanmsg(cp
," ,;( )__, )~\\|");
25 controlchanmsg(cp
," ;; // '--;");
26 controlchanmsg(cp
," ' ;\\ |");
27 controlreply(sender
,"Spammed horse in %s.",cp
->index
->name
->content
);
29 controlreply(sender
,"Can't find %s.",cargv
[0]);
36 registercontrolhelpcmd("horse",NO_OPERED
,2,ho_horse
,"Usage: horse <target>\nSpams a horse at target.");
40 deregistercontrolcmd("horse",ho_horse
);