<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Cnt.get_members_to_notify_by_persid</id>
		<title>Cnt.get members to notify by persid - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Cnt.get_members_to_notify_by_persid"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Cnt.get_members_to_notify_by_persid&amp;action=history"/>
		<updated>2026-07-28T11:57:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.1</generator>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Cnt.get_members_to_notify_by_persid&amp;diff=4346&amp;oldid=prev</id>
		<title>Kowy: New page: __NOTOC__ Category:Customizations Category:r11 Category:r12 Category:Spell Code {{Global Header}} {{Global Announcement}} == Overview == This method gets a list of members ...</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Cnt.get_members_to_notify_by_persid&amp;diff=4346&amp;oldid=prev"/>
				<updated>2011-07-19T14:35:07Z</updated>
		
		<summary type="html">&lt;p&gt;New page: __NOTOC__ &lt;a href=&quot;/wiki/index.php?title=Category:Customizations&quot; title=&quot;Category:Customizations&quot;&gt;Category:Customizations&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:R11&quot; title=&quot;Category:R11&quot;&gt;Category:r11&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:R12&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:R12 (page does not exist)&quot;&gt;Category:r12&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:Spell_Code&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Spell Code (page does not exist)&quot;&gt;Category:Spell Code&lt;/a&gt; {{Global Header}} {{Global Announcement}} == Overview == This method gets a list of members ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
[[Category:Customizations]]&lt;br /&gt;
[[Category:r11]]&lt;br /&gt;
[[Category:r12]]&lt;br /&gt;
[[Category:Spell Code]]&lt;br /&gt;
{{Global Header}}&lt;br /&gt;
{{Global Announcement}}&lt;br /&gt;
== Overview ==&lt;br /&gt;
This method gets a list of members with Notify flag set ON for specified group .&lt;br /&gt;
&lt;br /&gt;
This action can be called in [[Spel_Reference_Guide|spell code]] in method [[send_wait]] (or [[send]]) using [[Send_WaitCall_Attr|call_attr]] action.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
void send_wait (int timeout, object top_object, &amp;quot;call_attr&amp;quot;, &amp;quot;cnt&amp;quot;, &amp;quot;get_members_to_notify_by_persid&amp;quot;, contact_persid)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* timeout - how long (in seconds) should the method wait for finishing the method (0 means infinite [no timeout] and is generally the value used)&lt;br /&gt;
* top_object - root object for the method (on which the method is called)&lt;br /&gt;
* contact_persid - persistent ID of a group for which members you are looking for&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
success or failure is tested with msg_error() (boolean function)&lt;br /&gt;
&lt;br /&gt;
On success the resulted list is filled into a global array '''msg''' as follows:&lt;br /&gt;
* msg[0] - the number of assigned groups&lt;br /&gt;
* msg[1] - one string with a list of member persistent IDs separated by spaces (&amp;quot; &amp;quot;)&lt;br /&gt;
&lt;br /&gt;
On failure&lt;br /&gt;
* msg[0] - failure reason&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
int i;&lt;br /&gt;
send_wait(0, top_object(), &amp;quot;call_attr&amp;quot;, &amp;quot;cnt&amp;quot;, &amp;quot;get_members_to_notify_by_persid&amp;quot;, &amp;quot;cnt:776B094702EABB4B87F04A139E72D44B&amp;quot;);&lt;br /&gt;
if( msg_error()) {&lt;br /&gt;
    logf (ERROR, &amp;quot;failure in send_wait ..... .Reason: %s&amp;quot;,msg[0]);&lt;br /&gt;
} else {&lt;br /&gt;
    string member_persids[msg[0]];&lt;br /&gt;
    split(member_persids, msg[1], &amp;quot; &amp;quot;);&lt;br /&gt;
    for (i=0;i&amp;lt;msg[0];i++) {&lt;br /&gt;
        logf (SIGNIFICANT, &amp;quot;Notify %s&amp;quot;, member_persids[i]);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
string notify_list;&lt;br /&gt;
send_wait(0, top_object(), &amp;quot;call_attr&amp;quot;, &amp;quot;cnt&amp;quot;, &amp;quot;get_members_to_notify_by_persid&amp;quot;, msg_target);&lt;br /&gt;
if (msg_error()) {&lt;br /&gt;
    logf(ERROR, &amp;quot;%s: Error in get_members_to_notify_by_persid(%s)&amp;quot;, method, msg_target);&lt;br /&gt;
    return 1;&lt;br /&gt;
} else {&lt;br /&gt;
    notify_list = msg[1] + &amp;quot; &amp;quot; + msg_target;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
logf(TRACE, &amp;quot;%s: Going to notify these users: %s&amp;quot;, method, notify_list);&lt;br /&gt;
send_wait(0, top_object(), &amp;quot;call_attr&amp;quot;, &amp;quot;cnt&amp;quot;, &amp;quot;notify_list&amp;quot;, notify_list, msg_level, msg_title, msg_body, &amp;quot;&amp;quot; /* msg_ack */, &lt;br /&gt;
          tran_pt, ticket, is_internal, 0 /* cmth_override */);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kowy</name></author>	</entry>

	</feed>