statistics
People Online: 7
Today's Visitors: 36
Total Visitors: 4,049,519
June 17, 2013, 09:22:48 PM
Shoutbox
   
 
[DevTeam] [lothaer]: Posted a new download in the skins forum check it out
[DevTeam] [lothaer]: Zeke, Maziel, Pazza, Nachonut, sylvanaar, Kaidenn, Astaldo where are you?
[DevTeam] [lothaer]: It would be a real shame if WIM was left to die.
[DevTeam] [lothaer]: i think these forums are dead, Sylvanaar dosnt post on them as he only bug fixes when possible. WIMs future isnt very bright
[Guest] [justgiz]: Yea, its rather sad.
[Guest] [silvercola]: I wish it had skype
[DevTeam] [lothaer]: noy possible for a addon to do.
[DevTeam] [lothaer]: ...........
[Guest] [elzershark]: where is the download file?
lothaer beckons everyone over to you.
[DevTeam] [lothaer]: has anyone been able to take WIM to the beta yet?
[DevTeam] [lothaer]: PTR*
[DevTeam] [Maziel]: *sticks head up and looks around*
lothaer cries.
[DevTeam] [lothaer]: who the hell flagged my post as spam?
[Guest] [primalforce]: Hey guys
[DevTeam] [lothaer]: hello Primalforce.
[DevTeam] [lothaer]: PAZZA COME BACK!!!
[DevTeam] [Nachonut]: Ahhh memories
[Guest] [Ignis]: wtb update
[DevTeam] [lothaer]: soooo.....
Pazza starts to complain... Kinda reminds you of Sloans dont it?
[Guest] [Hentaya]: No more wiki?
[Guest] [Hentaya]: All the wiki links seem to bring me to the forums.
[Guest] [menace97]: the latest wim (3.5.9) i download still reads in-game as 3.4.2. ?
[Guest] [Hentaya]: Good thing the shoutbox doesn't have timestamps.
[Guest] [ravensong]: Is WIM going to be updated for the new patch? It gets a LUA error every time people log on bnet or pst me, because "
[Guest] [ravensong]: "surname" is now a nil value.
[Guest] [Dethedrus]: Since WiM is obviously quite dead, is there ANYTHING else out there that even comes close to replicating it's functionality?
[Guest] [Harshmage]: So the "surname" can be removed from the realID detection, in WIM.lua
[Guest] [Harshmage]: but fixing the tutorial popup and other errors is probably not going to happen without a major rework
[Guest] [menace97]: quite dead?
[Guest] [Nytetears]: I am trying out tell track I wish WIM would update I much prefer it but there are too many errors to try and use it now
[Guest] [Erudan]: Wim is being updated on Curse.
[Guest] [Chiaki]: Hello guys! I'm the one who did the German translation of WIM. The translation is somewhat old so tell me where to provide a new version .
[DevTeam] [lothaer]: Check out my new post in the General Discussion. Please report any errors as I can't check them myself.
lothaer pokes Pazza. Hey!
lothaer is overcome with boredom. Oh the drudgery!
lothaer roars with bestial vigor. So fierce!
lothaer cries.
lothaer falls asleep. Zzzzzzz.
lothaer , in quiet contemplation, mourns the loss of the dead.
lothaer tells a joke.
lothaer yawns sleepily.
[DevTeam] [lothaer]: Sylvanaar
[DevTeam] [lothaer]: 22/10/12
[DevTeam] [lothaer]: updated the download
[DevTeam] [lothaer]: check out my new post in the Skin thread
[DevTeam] [lothaer]: 11/11/12
[DevTeam] [lothaer]: 23/2/13
 
   
   
News: World of Warcraft v4.0.1
 
Pages: [1]
Print
Author Topic: Hooking ChatFrame_MessageEventHandler before WIM  (Read 2362 times)
sammy
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
« on: May 06, 2007, 10:51:39 AM »

Hi there,

Trying to create an anti-spam addon which is compatible with WIM but I am having problems hooking ChatFrame_MessageEventHandler before WIM for some reason.  I have tried to setup the hook to ChatFrame_MessageEventHandler on the ADDON_LOADED event for my own addon which triggers before WIM.  But I am thinking I actually want to hook this function last to get the first order hook?

Could you enlighten me as to how to do this properly? I am thinking what I actually want to do is hook last after WIM has setup it's hook?
Logged
Pazza
Administrator
Hero Member
*****

Karma: +89/-15
Offline Offline

Posts: 1375


Effin A


View Profile WWW
« Reply #1 on: May 06, 2007, 01:55:36 PM »

Hey Sammy. The problem you are having is not because of the order in which your addon is hooking. You would want it to be done after WIM and to enforce this, you would want to add WIM to your optional dependencies in our TOC file.

For an explanation on how WIM is hooking please read the following thread:
http://www.wimaddon.com/forums/index.php?topic=44.0

To sum it up, WIM catches events from two locations. One from the ChatFrame_MessageEventHandler and the other, it listens to events itself. The only reason WIM hooks the ChatFrame_MessageEventHandler is so it is able to suppress whispers.

What does this mean? Well it would mean that you would have to create a custom hook just for WIM. I have listed the best way to do so in the WIM API section of the site.

If you need anymore help let me know. I am still trying to devise a way to make this task easier for other developers.
Logged

My hobbies consume way too much time :-).
Maziel
Beta Tester
Full Member
*

Karma: +6/-0
Offline Offline

Posts: 198


Maziel of Feathermoon


View Profile WWW
« Reply #2 on: May 08, 2007, 08:14:12 PM »

Perhaps another Author of a mod that has successfully done a /who level check and block of whispers and is compatible with WIM is this guy OctaneBlade, his mod is SpamMeNot which allows you to choose which level you don't want to recieve whispers from: http://ui.worldofwar.net/ui.php?id=4387

This guy is another brainiac like Pazza, so if devs are needing to know how to do things compatible with WIM, I'd say chat to OctaneBlade as well as Pazza, as well as the author of SpamSentry. Smiley

Between SpamSentry's report system, WIM's ignore filter system, and SpamMeNot's gold blocking / level blocking, i don't think people need any other form of spam blocker. O_O
Logged

Pages: [1]
Print
Jump to:  

You must be logged in to send a message to the shout box.
     
  test stamp