Hey, is there any way you can check if a chan exists if you type /check #chan and if it exists it returns $true, if it does not it returns $false?
Not sure about that, but if your network has ChanServ you could type /chanserv info #channelname
ok, i guess that will have to do :tongue: btw, thanks for the quick reply!
Well you could do the obvious as well by actually typing /join #Channelname and well if it exists there will be people there and if it don't, well then you just made it exist....
Or maybe a '/who chan' would be easier, since you wouldn't have to enter the room..?
Might not work on some servers that support mode +i though.
alias ChanCheck {
set %ChanCheck #$$1
.raw mode %ChanCheck
}
raw 324:*:{
if ($2 == %ChanCheck) {
echo $color(info) -abflirt * ChanCheck: %ChanCheck exists.
halt
}
}
raw 329:*:{
if ($2 == %ChanCheck) {
unset %ChanCheck
halt
}
}
raw 403:*:{
if ($2 == %ChanCheck) {
echo $color(info) -abflirt * ChanCheck: %ChanCheck does not exist.
unset %ChanCheck
halt
}
}
/ChanCheck #Help
[color:00007F]* ChanCheck: #Help exists.[/color]
/ChanCheck #Helpfopijepq
[color:00007F]* ChanCheck: #Helpfopijepq does not exist.[/color]
Thanks Hammer, it works great!