Advertisement
sxiii

User Search Script by RealName and SAJON him to channel

Dec 26th, 2014
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.06 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ; This mIRC script lets you search users by REALNAME mask and make them join your channel
  3. ; You have to prepare file named "ids.txt" with REALNAME ids of people you like to join your channel
  4. ; Each REALNAME record has to start as newline. Put this file to the following directory:
  5. ; (Your hard drive where mIRC is installed)/users/(Your User Name)/Application Data/mIRC
  6. ; For example it might be the following file: C:/users/root/Application Data/mIRC/ids.txt
  7. ; To get simple REALNAME record run "/who yournick" in IRC to see your own REALNAME record (after :0)
  8. ; Next, add the following script lines to the mIRC - Tools - Script editor (Alt+R) - Remote section
  9. ; After you add them at the bottom, please run the script like following:
  10. ; /usearch #channel-to-search #channel-to-invite
  11. ; NEW VERSION 4.22                                               written by Security XIII on 26.12.2014
  12. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  13.  
  14. ; custom alias "/usearch #channel-to-search #invite-channel"
  15. alias usearch {
  16.   ; request names list
  17.   who $$1
  18.   ; global variable storing the name of the channel
  19.   set -en %usearch $1
  20.   set -en %invitech $2
  21.   set -en %word 1
  22.   unset %compare
  23. }
  24.  
  25. ; who reply
  26. raw 352:*: {
  27.   ; reply is for the channel in question
  28.   if ($2 == %usearch) {
  29.     echo -a UserID: %word
  30.     set %unick $6
  31.     ;who %unick
  32.     set %urealname $9-
  33.     echo -a UserNick: %unick
  34.     echo -a UserRealName: %urealname
  35.     while ($read(ids.txt, nw, %urealname $+ *, $calc($readn + 1))) set %compare $v1
  36.     echo -a comparing %urealname to $left(%compare,50)
  37.     if %urealname == $left(%compare,50)) { SAJOIN %unick %invitech }
  38.     else { echo -a user realname not found in list }
  39.  
  40.     inc %word
  41.     unset %compare
  42.     ; halt default display
  43.     haltdef
  44.   }
  45. }
  46.  
  47. ; 'end of who' reply
  48. raw 315:*: {
  49.   ; reply is for the channel in question
  50.   if ($2 == %usearch) {
  51.     unset %usearch
  52.     haltdef
  53.   }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement