mIRC Home    About    Download    Register    News    Help

Print Thread
channel topics and channel modes. #208318 18/01/09 05:21 PM
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.

Re: channel topics and channel modes. [Re: MTec007] #208319 18/01/09 05:28 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
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

Re: channel topics and channel modes. [Re: MTec007] #208320 18/01/09 05:30 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
/help $chan
Specifically: $chan(#channel).topic and $chan(#channel).mode

Re: channel topics and channel modes. [Re: RusselB] #208324 18/01/09 05:48 PM
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

Re: channel topics and channel modes. [Re: MTec007] #208328 18/01/09 06:54 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
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.

Re: channel topics and channel modes. [Re: RusselB] #208336 18/01/09 08:08 PM
Joined: Jul 2006
Posts: 3,574
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,574
Just as a note, $topic exists smile


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: channel topics and channel modes. [Re: Wims] #208353 19/01/09 01:12 AM
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.

Re: channel topics and channel modes. [Re: MTec007] #208354 19/01/09 01:34 AM
Joined: Jul 2006
Posts: 3,574
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,574
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



Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: channel topics and channel modes. [Re: Wims] #208355 19/01/09 01:35 AM
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