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