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 debug
import utils import utils
import world import world
import ircdb
import ircmsgs import ircmsgs
import drivers import drivers
import privmsgs import privmsgs
@ -278,6 +279,16 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
else: else:
irc.error(msg, 'There was no callback %s' % name) 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): def cvsup(self, irc, msg, args):
"""takes no arguments """takes no arguments