diff Squawk.lua @ 19:431f2fce08f2

Added in link stripping Coloured class names Reply to specific squawk Related squawks fixed new arrow to indicate reply limit to 140 characters
author wobin
date Tue, 12 May 2009 00:57:59 +1000
parents a3328fffef5c
children 22178ac75587
line wrap: on
line diff
--- a/Squawk.lua	Thu May 07 02:52:23 2009 +1000
+++ b/Squawk.lua	Tue May 12 00:57:59 2009 +1000
@@ -18,6 +18,7 @@
 local defaults = {
 	profile = {
 		Squawks = {},
+		Squawkers = {},
 		Follower = {},
 		Following = {},
 		Pending = {},
@@ -30,6 +31,7 @@
 function Squawk:OnInitialize()
 	Model.db = LibStub("AceDB-3.0"):New("SquawkDB", defaults)
 	Model.Squawks.Main = Model.db.profile.Squawks
+	Model.Squawks.Squawkers = Model.db.profile.Squawkers
 	Settings.Follower = Model.db.profile.Follower
 	Settings.Following = Model.db.profile.Following
 	Settings.Pending = Model.db.profile.Pending
@@ -43,5 +45,8 @@
 	LibStub("AceConsole-3.0"):Embed(View)
 	setmetatable(View, SquawkViewMeta)
 
+	Controller.Name = UnitName("player")
+	_, Controller.Class = UnitClass("player")
+
 	Model.Squawks.Reload(Model.Squawks) -- Retrain the table lookups
 end