Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include "../../include/zeroserv.h"
- int zs_clean(int sd)
- {
- strcpy(module[modcount].name,"zs_clean");
- strcpy(module[modcount].func,"zs_clean_main");
- module[modcount].perm = 0;
- strcpy(module[modcount].desc,"$Id: zs_games.c 104 2010-09-29 00:09:04Z dev0 $");
- strcat(module[modcount].desc,CompileVer);
- return 1;
- }
- int zs_clean_join(int modulenr)
- {
- /*if module needs a client, if it needs it opered, or join a chan.... do it here... yea, should make it easier to join clients and crap..*/
- ircsend(sd,":%i UID %s %u %s %s %s %s 0.0.0.0 %u +Iko :zeroserv\r\n",sevnumeric,module[modulenr].me,time(NULL),module[modulenr].name,servname, servname,module[modulenr].name,time(NULL));
- ircsend(sd,":%s OPERTYPE Service\r\n",module[modulenr].me);
- ircsend(sd,":%i FJOIN %s %u +nt :oa,%s\r\n",sevnumeric, botchan, time(NULL),module[modulenr].me);
- ircsend(sd,":%s PRIVMSG %s :Mudule LOADED! ->#%i\r\n",module[modulenr].me,botchan,modulenr);
- return 1;
- }
- int zs_clean_unload(int sd,int id)
- {
- Log(IRCSEND,1,"unload sent...");
- ircsend(sd,":%s QUIT :Unloaded..\r\n",module[id].me);
- return 1;
- }
- int zs_clean_main(msg *smsg, int sd,int id)
- {
- /*something here*/
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement