mIRC Home    About    Download    Register    News    Help

Print Thread
#9486 03/02/03 04:44 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
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?

#9487 03/02/03 04:47 PM
Joined: Dec 2002
Posts: 843
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
Not sure about that, but if your network has ChanServ you could type /chanserv info #channelname smile


Never compare yourself to others - they're more screwed up than you think.
#9488 03/02/03 04:52 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
ok, i guess that will have to do :tongue: btw, thanks for the quick reply!

#9489 03/02/03 08:18 PM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
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....

#9490 03/02/03 10:51 PM
Joined: Dec 2002
Posts: 83
A
Babel fish
Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
Or maybe a '/who chan' would be easier, since you wouldn't have to enter the room..?

#9491 03/02/03 11:14 PM
Joined: Dec 2002
Posts: 843
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
Might not work on some servers that support mode +i though.


Never compare yourself to others - they're more screwed up than you think.
#9492 04/02/03 02:26 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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]


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#9493 04/02/03 03:48 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
Thanks Hammer, it works great! grin


Link Copied to Clipboard