Mercurial > wow > squawk
changeset 1:188273d0efad
Syntax fix
author | wobin |
---|---|
date | Thu, 16 Apr 2009 17:29:58 +1000 |
parents | 2c267c596711 |
children | 75a76882c343 |
files | Squawk.lua |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Squawk.lua Thu Apr 16 17:26:19 2009 +1000 +++ b/Squawk.lua Thu Apr 16 17:29:58 2009 +1000 @@ -2,7 +2,7 @@ -- Author: Wobin -- Email: wobster@gmail.com -- -Squawk = LibStub("AceAddon-3.0"):NewAddon("Squawk", "AceDB-3.0") +Squawk = LibStub("AceAddon-3.0"):NewAddon("Squawk") Squawk.Model = {} Squawk.View = {} @@ -148,6 +148,10 @@ View:UpdateSquawkList() end +function Controller:ImPending(Name) + View:NotifyOfPending(Name) +end + function Controller:SendMessageToTarget(Name, Message) self:SendCommMessage("Squawk", Message, "WHISPER", Name, "BULK") end @@ -157,14 +161,14 @@ end local Parse = { - ["#Pending"] = View:NotifyOfPending, - ["#Follow"] = Controller:IAmNowFollowingThem, - ["#Squawk"] = Controller:AddANewSquawk + ["#Pending"] = Controller.ImPending, + ["#Follow"] = Controller.IAmNowFollowingThem, + ["#Squawk"] = Controller.AddANewSquawk } function Controller:ReceiveMessage(Prefix, Message, Distribution, Sender) local command, name, info = strsplit("|",Message) - Parse[command](name, info) + Parse[command](self, name, info) end -- View --