Advertisement
makimaki

little socket

Jun 22nd, 2010
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.50 KB | None | 0 0
  1. alias swrite { sockwrite -n nth $1- }
  2.  
  3. alias sock {
  4. if ($1 == START) { sockclose nth | sockopen nth three.irc.sparkpea.net 6667 }
  5. elseif ($1 == MSG) { swrite PRIVMSG # $2- }
  6. elseif ($1 == MODE) { swrite $1 # $2- }
  7. elseif ($1 == JOIN || $1 == PART ) { swrite $1 # }
  8. }
  9.  
  10. on *:sockopen:nth: {
  11. swrite NICK SocketBot
  12. if (!%sep) { set %sep $$?="Email & Pass:" }
  13. swrite NickServ IDENTIFY %sep
  14. }
  15.  
  16. on *:sockread:nth:{
  17. sockread %fd
  18. if (%fd) { tokenize 32 %fd }
  19. if ($1 == PING) { swrite PONG $2- }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement