NickServ Identify Dialog

By FreeHuman on Nov 02, 2011

This Snippet Auto Loads Dialog When You Changed Your NIckName To Registered NickName.You Can Select Other Nick and Password by clicking "click here".

On *:NOTICE:*:*: {
  if ( $nick == NickServ ) {
    if ( This nickname is registered isin $1- ) {
      if ( %login != $me ) {
        dialog -m ns ns
        did -a ns 1 Write $me $+ 's Password:
      }
      else { .msg nickserv identify %pass }
    }
  }
}

dialog ns {
  title "NickServ Login"
  size -1 -1 79 42
  option dbu
  text "Text", 1, 2 3 125 8
  edit "", 2, 2 12 76 10, autohs pass
  text "If It is not you,please ", 3, 2 23 52 8
  link "click here", 4, 55 23 23 8
  button "OK", 5, 3 32 34 9, ok
  button "Cancel", 6, 42 32 34 9, cancel
}

dialog ns2 {
  title "NickServ Login"
  size -1 -1 81 53
  option dbu
  text "Write NickName:", 1, 2 3 43 8
  edit "", 2, 2 12 76 10, autohs
  button "OK", 5, 3 41 34 9, ok
  button "Cancel", 6, 42 41 34 9, cancel
  text "Write Password:", 3, 2 22 46 8
  edit "", 4, 2 30 76 10, pass autohs
}

On *:dialog:*:sclick:* {
  if ( $dname == ns ) {
    if ( $did == 5 ) { .msg nickserv identify $did(2) }
    if ( $did == 6 ) { nick UnKnownNick- $+ $r(1,100) }
    if ( $did == 4 ) { dialog -x ns | dialog -m ns2 ns2  }
  }
  if ( $dname == ns2 ) {
    if ( $did == 5 ) {
      nick $did(2) 
      .msg NickServ identify $did(4)
      set %login $did(2)
      set %pass $did(4) 
    }
if ( $did == 6 ) { nick UnKnownNick- $+ $r(1,100) }
  }
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.