SHARE
TWEET

Untitled

a guest Jun 19th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include "../../include/zeroserv.h"
  4.    
  5. int zs_clean(int sd)
  6. {
  7.         strcpy(module[modcount].name,"zs_clean");
  8.         strcpy(module[modcount].func,"zs_clean_main");
  9.         module[modcount].perm = 0;
  10.         strcpy(module[modcount].desc,"$Id: zs_games.c 104 2010-09-29 00:09:04Z dev0 $");
  11.         strcat(module[modcount].desc,CompileVer);
  12.         return 1;
  13. }
  14.  
  15. int zs_clean_join(int modulenr)
  16. {
  17.         /*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..*/
  18.         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));
  19.         ircsend(sd,":%s OPERTYPE Service\r\n",module[modulenr].me);
  20.         ircsend(sd,":%i FJOIN %s %u +nt :oa,%s\r\n",sevnumeric, botchan, time(NULL),module[modulenr].me);
  21.         ircsend(sd,":%s PRIVMSG %s :Mudule LOADED! ->#%i\r\n",module[modulenr].me,botchan,modulenr);
  22.         return 1;
  23. }
  24.  
  25. int zs_clean_unload(int sd,int id)
  26. {
  27.     Log(IRCSEND,1,"unload sent...");
  28.     ircsend(sd,":%s QUIT :Unloaded..\r\n",module[id].me);
  29.     return 1;
  30. }
  31.  
  32. int  zs_clean_main(msg *smsg, int sd,int id)
  33. {
  34. /*something here*/
  35.            
  36. return 1;
  37. }
RAW Paste Data
Top