mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
I am trying to find some identifiers for a channel topic and channel modes on join.. but i cant find either. what I need is to check to topic against a variable and set the topic to the var if is != and the same with the modes. A little bit of channel managment for a server that wount let me register my channel to get services to set these automatically.

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Errr... $chan(#).topic and $chan(#).mode?
Did you even check thehelp file? :P
/help $chan

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
/help $chan
Specifically: $chan(#channel).topic and $chan(#channel).mode

Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
i wasnt looking for properties i was looking for identifiers.. thats my mistake

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
$chan is the identifier
.topic or .mode is the property
You have to use the property with the identifier to get what you're wanting, as is the case with a fair number of identifiers that have properties.
I suppose it's possible for Khaled to have made a different identifier for each property, rather than a single identifier with a property extension (for lack of a better term), but as he didn't, I'm going to suspect that there's a good reason.

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Just as a note, $topic exists smile


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
Originally Posted By: Wims
Just as a note, $topic exists smile


really ... because i get this.

* No such identifier: $topic

no /help $topic either.

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
In fact it has existed before, I thought I had already used it some version ago but indeed, it has been removed in v4.7, sorry about that smile



#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Feb 2007
Posts: 234
M
MTec007 Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Feb 2007
Posts: 234
smile well any way thanks for all the help smile


Link Copied to Clipboard