diff Squawk.lua @ 3:1cc6e4710e2e

adding tests
author wobin
date Fri, 17 Apr 2009 15:59:51 +1000
parents 75a76882c343
children d1383f2d9b43
line wrap: on
line diff
--- a/Squawk.lua	Thu Apr 16 22:05:24 2009 +1000
+++ b/Squawk.lua	Fri Apr 17 15:59:51 2009 +1000
@@ -32,7 +32,9 @@
 	Settings.Private = Model.db.profile.Private
 	
 	LibStub("AceComm-3.0"):Embed(Controller)
-	Controller:RegisterComm("Squawk", ReceiveMessage)
+	Controller:RegisterComm("Squawk", Controller.ReceiveMessage)
+
+	LibStub("AceConsole-3.0"):Embed(View)
 end
 
 -- Model --
@@ -187,13 +189,17 @@
 -- View --
 
 function View:UpdateSquawkList()
+	self:Print("Updated Squawk List")
 end
 
-function View:NotifyOfPending()
+function View:NotifyOfPending(Name)
+	self:Print(Name.." will have to approve your request")
 end
 
 function View:NotifyOfNewFollowing(Name)
+	self:Print("You are now following "..Name)
 end
 
 function View:NotifyOfNewFollower(Name)
+	self:Print(Name.." is now following you")
 end