mIRC Home    About    Download    Register    News    Help

Print Thread
Questions regarding topics and OPS #66321 02/01/04 09:24 PM
Joined: Jan 2004
Posts: 1
S
Sputnik Offline OP
Mostly harmless
OP Offline
Mostly harmless
S
Joined: Jan 2004
Posts: 1
Hello

I hope these are easy questions about mIRC scripts, but I'm just starting out and don't know how to do the following:-

Is there a way upon joining a channel that if the channel topic is missing to set it again (this happens fairly often on our irc network after a net split).

Also is there a way, once I've been opped to OP and voice all in the people in my auto-op and auto-voice lists. I could have sworn I saw something to do this in the mIRC help, but I can't find it now.

Thanks in advance for any help and assistance.

Re: Questions regarding topics and OPS #66322 02/01/04 11:38 PM
Joined: Dec 2003
Posts: 9
T
Terrywin Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Dec 2003
Posts: 9
For topics you will need to use the on RAW event. The numerics for topics are 332 and 333.

Example output from server:

:Server.Name 332 Nickname #Channel :Topic here
:Server.Name 333 Nickname #Channel Setbynick Ctime

Hope this helps! smile

Re: Questions regarding topics and OPS #66323 03/01/04 12:32 PM
Joined: Nov 2003
Posts: 227
H
Hitchhiker Offline
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
and 331 will probably be

:server 331 yournick #chan :No topic is set.

you should be send that after you join the channel when no topic is set, just make a global variable when you get it, then when you get ops check if the variable exists and if it does, set the topic again.