Channel check on join with on/off

By Firedog150 on Aug 15, 2007

This is a channel check with on and off feature.
Commands -
!whois on - Turns Auto Whois on join on (Must be hop or higher.)
!whois off - Turns Auto Whois on join off (Must be hop or higher.)

ON *:JOIN:#: { 
  if (%whoison [ $+ [ $chan ] ] != $null) {
    set %thisuser $nick
    set %chan2whois $chan 
    whois $nick 
  } 
}
raw 319:*:{  
  msg %chan2whois 0{ $+ 9,12 $+ %thisuser $+ 9,12 Is On: $3- 
  unset %chan2whois 
} 

on *:text:!whois on:#:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if (%whoison [ $+ [ $chan ] ] == $null) {
      set %whoison [ $+ [ $chan ] ] sup
      set %whoischecker [ $+ [ $chan ] ] on
      msg $chan 9,1Auto Whois for4 $chan 9,1is now: 4on10.
    }
    else notice $nick it is already on.
  }
  else notice $nick you need to be op or hop to use this.
}

on *:text:!whois off:#:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if (%whoison [ $+ [ $chan ] ] != $null) {
      unset %whoison [ $+ [ $chan ] ]
      set %whoischecker [ $+ [ $chan ] ] off
      msg $chan 9,1Auto Whois for4 $chan 9,1is now: 4off10.
    }
    else notice $nick it is already off.
  }
  else notice $nick you need to be op or hop to use this.
}

Comments

Sign in to comment.
Abtehi   -  May 07, 2009

doesnt works

 Respond  
Monky   -  Aug 15, 2007

Nicely done it think

 Respond  
Anti   -  Aug 15, 2007

Hehehehe no problem :) All in a day\'s work :D rofl..

 Respond  
Firedog150   -  Aug 15, 2007

I put the correct title on Thank you Anti

 Respond  
Anti   -  Aug 15, 2007

Edited it a bit make it more stylish

ON *:JOIN:#: { 
  if (%whoison [ $+ [ $chan ] ] != $null) {
    set %thisuser $nick
    set %chan2whois $chan 
    whois $nick 
  } 
}
raw 319:*:{  
  msg %chan2whois 11[15Channel Checker11] 11[15 $+ %thisuser Is On11] 11[15  $3- 11]
  unset %chan2whois 
} 

on *:text:.wON:#:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if (%whoison [ $+ [ $chan ] ] == $null) {
      set %whoison [ $+ [ $chan ] ] sup
      set %whoischecker [ $+ [ $chan ] ] on
      msg $chan 11[15Chan Checker Is Now On.11]
    }
    else notice $nick 11[15It\'s Already On11]
  }
  else notice $nick 11[15You Need To Be Op or Hop To Use Chan Checker.11]
}

on *:text:.wOFF:#:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if (%whoison [ $+ [ $chan ] ] != $null) {
      unset %whoison [ $+ [ $chan ] ]
      set %whoischecker [ $+ [ $chan ] ] off
      msg $chan 11[15Chan Checker Is Now Off.11]
    }
    else notice $nick 11[15It\'s Already Off11]
  }
  else notice $nick 11[15You Need To Be Op or Hop To Use Chan Checker.11]
}
 Respond  
Ghost-lit Warder   -  Aug 15, 2007

Ah. Didn\'t read the snippet clearly. x_o

 Respond  
Anti   -  Aug 15, 2007

This isnt a whois whois it just tells you what chans there on. well done

 Respond  
Anti   -  Aug 15, 2007
ON *:JOIN:#: window +b @Whois 1000 700  
  if (%whoison [ $+ [ $chan ] ] != $null) {
    set %thisuser $nick
    set %chan2whois $chan 
   @whois echo whois $nick 
  } 
}

Something like that :)

 Respond  
Ghost-lit Warder   -  Aug 15, 2007

Ah, nevermind. You can just shut it off for those large channels. ;x

 Respond  
Ghost-lit Warder   -  Aug 15, 2007

This is useful for small channels because it won\'t flood your windows so much. For large channels there will be a lot of users joining. Everytime one of those users join it will whois them in YOUR window, thus flooding it. This is a really useful snippet for users you really can\'t identify by the nick. Great job.

 Respond  
Firedog150   -  Aug 15, 2007

What do you mean?

 Respond  
Anti   -  Aug 15, 2007

I like the idea, but this would really flood your window, why not make a new window for it called @Whois then it would be awesome. :)

 Respond  
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.