mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Added reconf command.
This commit is contained in:
parent
9f51a69d96
commit
9e042c5701
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user