Merge with Chris

Thu, 20 May 2010 15:44:53 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 20 May 2010 15:44:53 +0100
changeset 20
4f4d98345952
parent 19
a698d64fc929 (current diff)
parent 13
ff9790b827b7 (diff)
child 21
be3b031b986d

Merge with Chris

plugins/tell.lua file | annotate | diff | comparison | revisions
--- a/plugins/tell.lua	Thu May 20 14:37:28 2010 +0100
+++ b/plugins/tell.lua	Thu May 20 15:44:53 2010 +0100
@@ -21,16 +21,16 @@
 					tellings[nick] = {};
 				end
 				tellings[nick][#tellings[nick] + 1] = {from=command.sender.nick, msg=msg};
-				return "Ok! Will tell " .. nick .. " what you have said!";
+				return "Ok!";
 			else
 				if nick == command.sender.nick then
-					return "Are you going crazy!? You are " .. nick .. "!";
+					return ""Tell yourself.";
 				else
-					return "Aehm?! ... " .. nick .. " is currently online!";
+					return "" .. nick .. " is currently online!";
 				end
 			end
 		else
-			return "Sorry, but this command only makes sense if you execute it in a groupchat.";
+			return "This command is only available in groupchats.";
 		end
 	end);
 
@@ -40,6 +40,7 @@
 				for _,msg in ipairs(tellings[occupant.nick]) do
 					room:send_message(occupant.nick .. ": Welcome back! " .. msg.from .. " told me, to tell you, \"" .. msg.msg .. "\".");
 				end
+				tellings[occupant.nick] = nil;
 			end
 		end);
 	end);

mercurial