Page 1 of 1

adding /command?

Posted: Thu Nov 09, 2006 2:29 pm
by quile
I have a little private network, with password protection

I wanted to know, how i can add a command.

Someting like the /rules command

I want to add someting like /ircpass and it shows the pass of the network.

So when I change the pass of the network, i dont have to send out a notice or msg everyone.

thanks

Posted: Thu Nov 09, 2006 3:19 pm
by SpaceDoG
Why not just add the current pass/upcoming pass to the ircd.motd file? That is after all what the MOTD is for.

Posted: Thu Nov 09, 2006 5:45 pm
by Jobe
Or if youre using Services you could add it to the logon news. For example as with Anope use: "/msg OperServ logonnews add MESSAGE"

Posted: Fri Nov 10, 2006 6:13 am
by Ron2K
If you still want to add your own command, write your own module.

I would give preference to the two solutions above, however.

Posted: Fri Nov 10, 2006 7:59 am
by Grunt
Actually, for your own command, you only need the alias block. You can use it to make a custom /ircpass command, which passes it to a bot, which in turn notices the password back to the user.