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