IRC Messages have allways as type IRC and as tag e.g. public, msg, .. You may give your IRC module into the modules/IRC/ directory (Sure, you have not to).
Table 3-1. $args{other} values of IRC messages
Because you get the Net::IRC objects, you can directly use their methods. (You may look at the Net::IRC documentation)
Table 3-2. Methods for IRC modules
Registering IRC Modules is nearly the same as registering Jabber Modules (And are also put into the config.pl). You just have to say that the type is 'IRC' and as tag public or msg (You should use the bindm, not sbind)
Example 3-1. Hello IRC - the registration
bindm(name => 'modules::IRC::helloirc',
method => 'hell',
type => 'IRC',
pattern => '^hello',
tag => 'public'
);
|