]>
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"
5 int ho_horse(void *source
, int cargc
, char **cargv
) {
6 nick
*sender
=(nick
*)source
;
13 if ((victim
=getnickbynick(cargv
[0]))!=NULL
) {
14 controlreply(victim
," _ ___,;;;^");
15 controlreply(victim
," ,;( )__, )~\\|");
16 controlreply(victim
," ;; // '--;");
17 controlreply(victim
," ' ;\\ |");
18 controlreply(sender
,"Gave %s a horse.",victim
->nick
);
19 } else if ((cp
=findchannel(cargv
[0]))!=NULL
) {
20 controlchanmsg(cp
," _ ___,;;;^");
21 controlchanmsg(cp
," ,;( )__, )~\\|");
22 controlchanmsg(cp
," ;; // '--;");
23 controlchanmsg(cp
," ' ;\\ |");
24 controlreply(sender
,"Spammed horse in %s.",cp
->index
->name
->content
);
26 controlreply(sender
,"Can't find %s.",cargv
[0]);
33 registercontrolhelpcmd("horse",NO_OPERED
,2,ho_horse
,"Usage: horse <target>\nSpams a horse at target.");
37 deregistercontrolcmd("horse",ho_horse
);