Project

General

Profile

Return channel name??

Added by acid blue 19 days ago

Is there a Script Identifier that will return the name of the current channel your in??
I've looked in the 'Script Identifiers' wiki but cant find anything.
$chan and $channel looked promising but its not what I need.

Want to do something like this:
say $NameofChannel has N members currently.

I want to use something like this in different channels without having to hard code the channel name.


Replies (3)

RE: Return channel name?? - Added by Per Amundsen 19 days ago

Everything you need can be found on the wiki.

//say $chan has $nick($chan, 0) members currently

Add to Menubar -> Tools -> Edit Aliases:

/chanusers /say $chan has $nick($chan, 0) members currently

Now you can just type /chanusers.

RE: Return channel name?? - Added by acid blue 19 days ago

Just discovered $active
which will return the name of the active window.
Which is close enough.

example:
say $active
will give the channel name if you have that window open.

RE: Return channel name?? - Added by acid blue 19 days ago

SOFB
Yes $chan works too.
ie. say $chan.
Funny when I first tried $chan it didn't work.
Must of type it wrong or something.
Thanks....

    (1-3/3)