mIRC Homepage
Posted By: Sputnik Questions regarding topics and OPS - 02/01/04 09:24 PM
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.
Posted By: Terrywin Re: Questions regarding topics and OPS - 02/01/04 11:38 PM
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
Posted By: Hitchhiker Re: Questions regarding topics and OPS - 03/01/04 12:32 PM
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.
© mIRC Discussion Forums