diff --git a/ChangeLog b/ChangeLog index d0c57d91f..31fc2456e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ + * Removed Owner.{set,unset} since they matter not. + * Made the smileys and frowns configurable in ChannelDB. * Added an INVITE handler in Admin, allowing users with the admin diff --git a/src/Owner.py b/src/Owner.py index c8d79dfa6..bfb8c2aaf 100644 --- a/src/Owner.py +++ b/src/Owner.py @@ -348,29 +348,6 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg): else: irc.reply('%s collected.' % utils.nItems('object', collected)) - def set(self, irc, msg, args): - """ - - Sets the runtime variable to . Currently used variables - include "noflush" which, if set to true value, will prevent the - periodic flushing that normally occurs. - """ - (name, value) = privmsgs.getArgs(args, optional=1) - world.tempvars[name] = value - irc.replySuccess() - - def unset(self, irc, msg, args): - """ - - Unsets the value of variables set via the 'set' command. - """ - name = privmsgs.getArgs(args) - try: - del world.tempvars[name] - irc.replySuccess() - except KeyError: - irc.error('That variable wasn\'t set.') - def load(self, irc, msg, args): """ diff --git a/test/test_Owner.py b/test/test_Owner.py index 17afc5d26..c090d1c34 100644 --- a/test/test_Owner.py +++ b/test/test_Owner.py @@ -83,13 +83,6 @@ class OwnerTestCase(PluginTestCase, PluginDocumentation): def testUpkeep(self): self.assertNotError('upkeep') - def testSetUnset(self): - self.assertNotError('set foo bar') - self.failUnless(world.tempvars['foo'] == 'bar') - self.assertNotError('unset foo') - self.failIf('foo' in world.tempvars) - self.assertError('unset foo') - def testLoad(self): self.assertError('load Owner') self.assertError('load owner')