Advertisement
westor

Check if connection ok on cid for eL^Topo

Jan 19th, 2015
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.46 KB | None | 0 0
  1. ON *:EXIT: {
  2.   var %log = connections.log
  3.   if ($isfile(%log)) { .remove $qt(%log) }
  4. }
  5.  
  6. ON *:START: {
  7.   ; auto einai proeretiko
  8.   var %log = connections.log
  9.   if ($isfile(%log)) { .remove $qt(%log) }
  10. }
  11.  
  12. ON *:CONNECT: {
  13.   var %log = connections.log
  14.   write $qt(%log) $cid
  15. }
  16.  
  17. alias check_window_con {
  18.  
  19.   ; Usage: $check_window_con(CID)
  20.  
  21.   if (!$1) { return }
  22.   var %log = connections.log
  23.   if (!$read(%log,ntw,$1)) { return 0 }
  24.   else { return 1 }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement