on join whois o.O

By GuitarMasterx7 on Jan 16, 2010

i haven't seen a on join whois on this site
the way this is made
soo yeaaa

pretty sure im missing a last braket but i cant tell lolz

it is multi channel

(09:01:33) <@GuitarMasterx7> !whois on
(09:01:33) <@Kindfer> Auto Whois for #kindfer is now: on .

  • @GuitarMasterx7 has left #kindfer (Hopping)
  • GuitarMasterx7 has joined #kindfer
  • ChanServ sets mode: +qo GuitarMasterx7 GuitarMasterx7
    <@Kindfer> [GuitarMasterx7] Is On: @#kindfer @#wo
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    1Auto Whois for   6 $chan    1is now:   6on  1.
    }
    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    1Auto Whois for   6 $chan    1is now:    6 off1.
    }
    else notice $nick it is already off.
  }
  else notice $nick you need to be op or hop to use this.
}

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

Comments

Sign in to comment.
GuitarMasterx7   -  Jan 19, 2010

lol wth Jethro_ >.>

 Respond  
Jethro   -  Jan 18, 2010

Ghost-writer, you can save yourself a letter o in your regex

on $*:TEXT:/^[.!@]Whois (on|off)/Si:#: {can be:

on $*:TEXT:/^!whois o(n|ff)$/Si:#: {

then use:

if ($regml(1) = n)
if ($regml(1) = ff)
 Respond  
Jethro   -  Jan 18, 2010

abhi25, your code is oddly written...

 Respond  
GuitarMasterx7   -  Jan 18, 2010

well thats good an all buuuuuuuuuut
it doesnt do what mine does =D

 Respond  
abhi25   -  Jan 18, 2010

here is my simple on join whois

Code:
on *:join:# $$1: whois $nick $nick

 Respond  
GuitarMasterx7   -  Jan 17, 2010

i tried thaat but it never worked

cuz when my friend gets bored he does the hop spam
lolz

 Respond  
Jethro   -  Jan 17, 2010

Well, either use a timer with a while loop to delay the output of whois via raw 366 or have a "botnet" or flood protection of some kind implemented when any of that takes place.

 Respond  
knoeki   -  Jan 17, 2010

But a whois script like this tends to easily create floods if people join at the same time...especially for a busy channel. I suppose it's ok for a small one.

Yes, but if some random botnet happens to find your channel, it's not going to be OK ;_)

 Respond  
GuitarMasterx7   -  Jan 17, 2010

thank you PS

rofl ghost xD

Somone called for regex? Give me 30 seconds :).

 Respond  
PowerScripters   -  Jan 17, 2010

Very nice Snippet. I like it and +9.

 Respond  
Ghost-writer   -  Jan 17, 2010

Somone called for regex? Give me 30 seconds :).

on $*:TEXT:/^[.!@]Whois (on|off)/Si:#: {
  if ($nick(#,$nick,oh)) {
    if ($regml(1) == on) && (!$hget(whois,$chan)) {
      $iif($regml(1) == on,hadd -m,hdel) whois $chan on
      msg $chan 1Auto Whois for6 $chan 1is now: 6 $+ $regml(1) $+ 1.
    }
    elseif ($regml(1) == off) && ($hget(whois,$chan)) {
      $iif($regml(1) == on,hadd -m,hdel) whois $chan on
      msg $chan 1Auto Whois for6 $chan 1is now: 6 $+ $regml(1) $+ 1.

    }
    else {
      notice $nick Auto whois for $chan is already $regml(1) $+ !
    }
  }
  else notice $nick You need to be atleast a halfop to set this!
}
ON *:JOIN:#: {
  if ($hget(Whois,$chan)) {
    set %msg $chan $nick
    whois $nick
  }
}
raw 319:*:{ 
  tokenize 32 %msg $1-
  msg $1   1[ $+    6 $+ $2 $+ 1]   1 Is On: $5-
  unset %msg
}

I know it could be better and i dont know if it could be shortend and still have all the same things, but this is what i came up with, i tried using,

    if ($regml(1) == on) && (!$hget(whois,$chan)) || ($regml(1) == off) && ($hget(whois,$chan)) {

But for some reason it failed and never went threw, il let jethro or napa correct me :P.

 Respond  
GuitarMasterx7   -  Jan 16, 2010

yea my chan is small

 Respond  
Jethro   -  Jan 16, 2010

Good work, Guitar. But a whois script like this tends to easily create floods if people join at the same time...especially for a busy channel. I suppose it's ok for a small one.

 Respond  
GuitarMasterx7   -  Jan 16, 2010

well then...
lol

 Respond  
God425   -  Jan 16, 2010

hi
napa182

 Respond  
knoeki   -  Jan 16, 2010

sounds like regex =x

not even close ;_)

 Respond  
GuitarMasterx7   -  Jan 16, 2010

dun think i know how to do that
sounds like regex =x

i never knew bout that napa =o thanks

 Respond  
napa182   -  Jan 16, 2010

instead of doing

if ($nick isop $chan) || ($nick ishop $chan) {

you can use

if ($nick(#,$nick,oh))

also maybe make the two on text events into one event.

 Respond  
GuitarMasterx7   -  Jan 16, 2010

you sure?!
feel paranoid bout it
lolz

 Respond  
jsg55   -  Jan 16, 2010

cool idea GuitarMaster, and i dont think your missing a bracket lol

 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.