Shoutbox

Question about the 5 Character Code - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Question about the 5 Character Code (/showthread.php?tid=38790)

Question about the 5 Character Code by Ash_ on 02-19-2005 at 04:14 AM

All coders should know of the Plus! API feature which sends 5 characters to the contact, so the plugin can run some code.

what if two plugins had the same characters so they can run their functions and stuff.

lets say

File Transfer Plus uses the code "abcde"
and
Song2Nick used the same code "abcde"

would that mean both the plugins would be called, or does plus search for the Plugin name that sent it, then send the Char to the plugin to check etc etc.

Thanks in advance.


RE: Question about the 5 Character Code by Mnjul on 02-19-2005 at 05:31 AM

quote:
Originally posted by Ash_
or does plus search for the Plugin name that sent it,
Plus! doesn't do this. In fact, Plus! calls the ReceiveNotify function of every installed plugin, one by one. It is a plugin's resposibility to determine the NotifyCode. I believe that Plus! stops calling other plugins as long as one plugin returns TRUE in ReceiveNotify. That is, only one plugin works and reacts to the NotifyCode. Also, there seems to be no way to determine which plugin is called first.