diff gui.lua @ 23:8664134bba4f

Add '/ouroloot ping' command, same functionality as button in options panel.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 09 Sep 2011 00:56:13 +0000
parents d89aeb6b9f9e
children 61d932f0e8f2
line wrap: on
line diff
--- a/gui.lua	Sun Sep 04 19:09:15 2011 +0000
+++ b/gui.lua	Fri Sep 09 00:56:13 2011 +0000
@@ -1662,12 +1662,9 @@
 			[[Asks other raid users for their addon version and current status.  Results displayed on User Options panel.]])
 		w:SetFullWidth(true)
 		w:SetCallback("OnClick", function(_w)
-			addon:Print("Give me a ping, Vasili. One ping only, please.")
-			addon.sender_list.active = {}
-			addon.sender_list.names = {}
 			_w:SetText("5... 4... 3...")
 			_w:SetDisabled(true)
-			addon:broadcast('ping')
+			addon:DoPing()
 			addon:ScheduleTimer(function(b)
 				if b:IsVisible() then
 					return addon:redisplay()