MnCOP - Multinetwork Connection / Oper Perform
About & Features
This little script performs various commands when you connect or after you successfully gained IRC Op status.- Supports multiple networks
- Supports QuakeNet's Q
- Execute commands on connect
- Execute commands after oper-up
- Simple INI-style configuration file
- Easy re-hashing of configuration file while XChat is running
Configuration
Place both, script and configuration, in your ~/.xchat2 (or similar) folder and edit it using your favourite text editor.Here's the sample config that is part of the script, let's get over it step by step:
[efnet] enable=0 connect=NICK forcenick connect=JOIN #arandomchannel PASS [SOMENET.net] enable=0 connect=NS identify SOMEPASS connect=OPER OPNICK PASS operup=MODE %self% +v-H operup=MODE %self% +s +cefFGkoqsSvj operup=SETHOST look.i.got.a.fancy.ho.st operup=PRIVMSG SomeService :auth PASS operup=INVITE %self% #somechannel operup=INVITE %self% #otherchannel operup=JOIN #somechannel,otherchannel
- [networkname]
The name of the network the following rules should apply to. - enable=
Set this to '1' to enable the commands for this network. - connect=
This can be ANY command XChat understands.
It'll be executed as soon as you are connected. - postqauth=
Same as connect=, just that it's executed after you successfully authed with QuakeNet's Q. - connect-OPER <opnick> <pass>
Use this to automatically oper up. - operup=
These are executed after you (successfully) became an IRC Op.
Other than that, the same rules as for connect= apply. - %self%
This is a wildcard and will be replaced with the nick you had at the moment the script started to run.
Can be used with both, operup= and connect= rules.
Once you have your configuration set, you can reload the configuration using the following command:
/mncop_rehash
If there have been some lines the script wasn't able to understand, it will say so.
Download
MnCOP 1.0perform.conf Example
