mIRC Homepage
Posted By: ST3V3 Chan Exists? - 03/02/03 04:44 PM
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?
Posted By: Poppy Re: Chan Exists? - 03/02/03 04:47 PM
Not sure about that, but if your network has ChanServ you could type /chanserv info #channelname smile
Posted By: ST3V3 Re: Chan Exists? - 03/02/03 04:52 PM
ok, i guess that will have to do :tongue: btw, thanks for the quick reply!
Posted By: The_Game Re: Chan Exists? - 03/02/03 08:18 PM
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....
Posted By: acemiles_ed Re: Chan Exists? - 03/02/03 10:51 PM
Or maybe a '/who chan' would be easier, since you wouldn't have to enter the room..?
Posted By: Poppy Re: Chan Exists? - 03/02/03 11:14 PM
Might not work on some servers that support mode +i though.
Posted By: Hammer Re: Chan Exists? - 04/02/03 02:26 AM
Code:

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]
Posted By: ST3V3 Re: Chan Exists? - 04/02/03 03:48 PM
Thanks Hammer, it works great! grin
© mIRC Discussion Forums