Less idiotic messages
authorJoerg Jaspert <joerg@debian.org>
Mon, 29 Dec 2008 22:08:17 +0000 (23:08 +0100)
committerJoerg Jaspert <joerg@debian.org>
Mon, 29 Dec 2008 22:08:17 +0000 (23:08 +0100)
Dak/plugin.py

index 6172dea..2d99650 100644 (file)
@@ -200,7 +200,7 @@ class Dak(callbacks.Plugin):
                 irc.reply("You suck, this is already locked by %s" % (self.locks[what]) )
         else:
             self.locks[what]=msg.nick
-            irc.reply("%s locked %s" % (msg.nick, what) )
+            irc.reply("locked %s" % (what) )
     lock = wrap(lock, ['text'])
 
     def unlock(self, irc, msg, args, what):
@@ -212,11 +212,11 @@ class Dak(callbacks.Plugin):
             irc.reply("Nothing locked")
             return
 
-        unlocked="%s unlocked: " % (msg.nick)
+        unlocked="unlocked: "
         if self.locks.has_key(what):
             if self.locks[what] == msg.nick:
                 del(self.locks[what])
-                irc.reply("%s unlocked %s" % (msg.nick, what) )
+                irc.reply("unlocked %s" % (what) )
             else:
                 irc.reply("%s is locked by %s, not by you. Not unlocked." % (what, self.locks[what]) )
         else:
@@ -239,12 +239,11 @@ class Dak(callbacks.Plugin):
             irc.reply("Nothing locked")
             return
 
-        unlocked="%s unlocked: " % (msg.nick)
         if self.locks.has_key(what):
             msgMaker = ircmsgs.privmsg
             irc.queueMsg(msgMaker(self.channel, "%s: Careful, %s just forceunlocked %s from you!" % (self.locks[what], msg.nick, what)))
             del(self.locks[what])
-            irc.reply("Done")
+            irc.reply("unlocked %s" % (what))
     forceunlock = wrap(forceunlock, ['text'])
 
     def setlastnew(self, irc, msg, args):