-Nick Grabber-

By Fossa on Jun 08, 2018

Simple, effective nick grabber for stolen or occupied nicks, wrote a long time ago for networks without a nickserv (e.g. IRCnet).

;Simple, effective nick grabber for stolen or occupied nicks, wrote a long time ago for networks without a nickserv (e.g. IRCnet).
;Fossa IRCnet

menu channel,status {
  GrabNick
  .On:grabnick 
  .Off:grabnickexit
}

alias grabnick {
  if (%grabnick) { 
    echo -a $timestamp Already wanna grab nick %grabnick
    halt
  }
  set %grabnick $$?="Enter nick to grab:"
  if (%grabnick != $me) {
    .notify %grabnick
    echo -a $timestamp Waiting to grab nick %grabnick
  } 
  else { 
    echo -a $timestamp Wanna grab your own nick fo0l?
    unset %grabnick
  }
}

on *:unotify: {
  if (%grabnick) && ($nick == %grabnick) && ($me == %ownnick) {
    nick %grabnick
    echo -a $timestamp Grabbed nick %grabnick $+ !
    grabnickexit
  }
}

alias grabnickexit {
  if (%grabnick) {
    .notify -r %grabnick
    echo -a $timestamp GrabNick is stopping now..
    unset %grabnick
  }
  else { 
    echo -a $timestamp GrabNick isn't active
  }
}

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.