mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Removed the OwnerCommands.say command; it wasn't useful enough.
This commit is contained in:
parent
06a45ff35a
commit
3c676f844a
@ -336,14 +336,6 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
ircdb.channels.reload()
|
ircdb.channels.reload()
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
|
|
||||||
def say(self, irc, msg, args):
|
|
||||||
"""<channel> <text>
|
|
||||||
|
|
||||||
Says <text> in <channel>
|
|
||||||
"""
|
|
||||||
(channel, text) = privmsgs.getArgs(args, needed=2)
|
|
||||||
irc.queueMsg(ircmsgs.privmsg(channel, text))
|
|
||||||
|
|
||||||
def connect(self, irc, msg, args):
|
def connect(self, irc, msg, args):
|
||||||
"""<server> [<port>]
|
"""<server> [<port>]
|
||||||
|
|
||||||
|
@ -96,9 +96,6 @@ class OwnerCommandsTestCase(PluginTestCase, PluginDocumentation):
|
|||||||
self.assertNotError('unload MiscCommands')
|
self.assertNotError('unload MiscCommands')
|
||||||
self.assertError('unload MiscCommands')
|
self.assertError('unload MiscCommands')
|
||||||
|
|
||||||
def testSay(self):
|
|
||||||
self.assertResponse('say %s foo' % self.irc.nick, 'foo')
|
|
||||||
|
|
||||||
def testSetconf(self):
|
def testSetconf(self):
|
||||||
try:
|
try:
|
||||||
originalConfAllowEval = conf.allowEval
|
originalConfAllowEval = conf.allowEval
|
||||||
|
Loading…
Reference in New Issue
Block a user