mIRC Homepage
Posted By: replay Message the topic of a channel - 23/01/05 01:58 PM
How to message the topic of a channel?

if you type !saytopic that the bot says the topic of the channel?
Posted By: JAFO Re: Message the topic of a channel - 23/01/05 02:02 PM
this command tells you the current topic in the channel /topic #ChannelName .... are you wanting this to be messaged to the channel? Because the /topic command just tells you the current topic.
Posted By: tidy_trax Re: Message the topic of a channel - 23/01/05 02:17 PM
Code:
on *:text:!saytopic:#:{ msg $chan $chan($chan).topic }
Posted By: replay Re: Message the topic of a channel - 23/01/05 04:09 PM
It didn't worked frown
Posted By: tidy_trax Re: Message the topic of a channel - 23/01/05 04:30 PM
You can't type !saytopic using the same nickname that the script's in.
Posted By: replay Re: Message the topic of a channel - 23/01/05 04:48 PM
i know, i didn't do that
Posted By: DaveC Re: Message the topic of a channel - 24/01/05 04:39 AM
are your remotes on, becuase that worked fine for me.
Posted By: NoPleX Re: Message the topic of a channel - 26/01/05 10:27 AM
Can you explain to me why it's $chan($chan).topic ? msg $chan tells the "bot" to msg the channel. And $chan($chan).topic tells what? My best shoot would me that($chan).topic is the topic of the channel and i don't know whant the $chan before that should do. Can you tell me?
Posted By: DaveC Re: Message the topic of a channel - 26/01/05 10:40 AM
It is two seperate $chan meanings, the $chan on its own is a remote (event) identifier, and is the channel the event occured in.
The $chan(channel name here).prop is a Widnow identifier and gives info about a channel, so

$chan( $chan ).topic, can only be isssued from inside an event or an alias called from an event, sicne it relys on the $chan remote identifier to tell it what channel to look up in the window identifier $chan()

try typing this on the mirc line

//echo -a $chan(insert a channel name here your on).topic


also see

/help $chan

both topics
Posted By: NoPleX Re: Message the topic of a channel - 26/01/05 11:32 AM
AAaaah... Then I understand smile It just looked wierd with 3 $chan i a rough wink
© mIRC Discussion Forums