Added reconf command.

This commit is contained in:
Jeremy Fincher 2003-09-13 15:13:46 +00:00
parent 9f51a69d96
commit 9e042c5701

View File

@ -46,6 +46,7 @@ import conf
import debug
import utils
import world
import ircdb
import ircmsgs
import drivers
import privmsgs
@ -278,6 +279,16 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
else:
irc.error(msg, 'There was no callback %s' % name)
def reconf(self, irc, msg, args):
"""takes no arguments
Reloads the configuration files in conf.dataDir: conf/users.conf and
conf/channels.conf, by default.
"""
ircdb.users.reload()
ircdb.channels.reload()
irc.reply(msg, conf.replySuccess)
def cvsup(self, irc, msg, args):
"""takes no arguments