mIRC Home    About    Download    Register    News    Help

Print Thread
#146756 07/04/06 10:08 PM
Joined: Mar 2006
Posts: 10
S
strac Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Mar 2006
Posts: 10
Is there a variable for the room topic? If so, what is it? and if not is there anyway to grab the room topic so you can put it to your own variable?

#146757 07/04/06 10:17 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
There's a topic identifier in the form of the topic property for the $chan() identifier.

/help $chan

Window identifiers


-

//echo -a $chan(#channel).topic

Change this to your channel name.

-

You could make a topic identifier...

Code:
alias topic if ($isid) return $chan($iif(!$1,#,$1)).topic | topic $1-


//echo -a $topic(#channel)

#146758 07/04/06 11:07 PM
Joined: Mar 2006
Posts: 10
S
strac Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Mar 2006
Posts: 10
thank you, I was able to use that to create the script:

on 2:TEXT:*!live:?:{
{ %lobtop = $chan(#lobby).topic }
topic #lobby $nick LIVE - %lobtop
}
smile


Link Copied to Clipboard