CIRCNetwork.on322 Member

LIST reply

Syntax

object.on322(e);

Arguments

ArgumentSummary
e

Returns

Remarks

See Also

Source Code

function my_listrply (e)
{
if (!("_list" in this) || !("lastLength" in this._list))
this.listInit();
++this._list.count;
/* If the list has been cancelled, don't bother adding all this info
* anymore. Do increase the count (above), otherwise we never truly notice
* the list being finished.
*/
if (this._list.cancelled)
return;
var chanName = e.decodeParam(2);
var topic = e.decodeParam(4);
if (!this._list.regexp || chanName.match(this._list.regexp) ||
topic.match(this._list.regexp))
{
if (!("file" in this._list))
{
this._list.push([chanName, e.params[3], topic]);
}
else
{
this._list.file.write(fromUnicode(chanName, "UTF-8") + " " +
e.params[3] + " " +
fromUnicode(topic, "UTF-8") + "\n");
}
}
}