<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.shoutirc.com/index.php?action=history&amp;feed=atom&amp;title=Lua_Events</id>
	<title>Lua Events - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.shoutirc.com/index.php?action=history&amp;feed=atom&amp;title=Lua_Events"/>
	<link rel="alternate" type="text/html" href="https://wiki.shoutirc.com/index.php?title=Lua_Events&amp;action=history"/>
	<updated>2026-04-29T15:16:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.shoutirc.com/index.php?title=Lua_Events&amp;diff=4505&amp;oldid=prev</id>
		<title>Indy at 23:22, 8 June 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.shoutirc.com/index.php?title=Lua_Events&amp;diff=4505&amp;oldid=prev"/>
		<updated>2014-06-08T23:22:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:22, 8 June 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l68&quot;&gt;Line 68:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  function handler(hostmask, phone, uflags, message)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  function handler(hostmask, phone, uflags, message)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Sent when an SMS message has been received by the [[Plugin:SMS|SMS plugin]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Sent when an SMS message has been received by the [[Plugin:SMS|SMS plugin]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Replied can be sent with the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Send_SMS&lt;/del&gt;() command.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Replied can be sent with the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SendSMS&lt;/ins&gt;() command.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ss_dragcomplete&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ss_dragcomplete&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key drift_BotWiki:diff:1.41:old-4504:rev-4505:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Indy</name></author>
	</entry>
	<entry>
		<id>https://wiki.shoutirc.com/index.php?title=Lua_Events&amp;diff=4504&amp;oldid=prev</id>
		<title>Indy at 23:19, 8 June 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.shoutirc.com/index.php?title=Lua_Events&amp;diff=4504&amp;oldid=prev"/>
		<updated>2014-06-08T23:19:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:19, 8 June 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l64&quot;&gt;Line 64:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Sent when a packet has been received from a remote client like the DJ Client or WebRequest. See [[Remote Commands]] for details.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Sent when a packet has been received from a remote client like the DJ Client or WebRequest. See [[Remote Commands]] for details.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Replied can be sent with the SendRemoteReply() command.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Replied can be sent with the SendRemoteReply() command.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; on_sms&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; function handler(hostmask, phone, uflags, message)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; Sent when an SMS message has been received by the [[Plugin:SMS|SMS plugin]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; Replied can be sent with the Send_SMS() command.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ss_dragcomplete&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ss_dragcomplete&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key drift_BotWiki:diff:1.41:old-4400:rev-4504:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Indy</name></author>
	</entry>
	<entry>
		<id>https://wiki.shoutirc.com/index.php?title=Lua_Events&amp;diff=4400&amp;oldid=prev</id>
		<title>Indy: Text replacement - &quot;IRCBot&quot; to &quot;RadioBot&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.shoutirc.com/index.php?title=Lua_Events&amp;diff=4400&amp;oldid=prev"/>
		<updated>2013-10-25T14:04:35Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;IRCBot&amp;quot; to &amp;quot;RadioBot&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Here are the Lua Events and what parameters are sent with them.&amp;lt;br /&amp;gt;&lt;br /&gt;
If you would like to see any other events implemented let us know and we&amp;#039;ll add it.&amp;lt;br /&amp;gt;&lt;br /&gt;
Event handlers should return 0 to continue processing of other handlers/plugins, or anything else to block further processing.&amp;lt;br /&amp;gt;&lt;br /&gt;
on_join/part/quit/etc. should pretty much never return anything other than 0 since it could make other plugins go out of sync.&lt;br /&gt;
&lt;br /&gt;
 on_pm&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, text)&lt;br /&gt;
 Sent when the bot receives a PM&lt;br /&gt;
&lt;br /&gt;
 on_text&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, channel, text)&lt;br /&gt;
 Sent when someone talks in a channel&lt;br /&gt;
&lt;br /&gt;
 on_notice_pm&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, text)&lt;br /&gt;
 Sent when someone NOTICE&amp;#039;es the bot&lt;br /&gt;
&lt;br /&gt;
 on_notice_text&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, channel, text)&lt;br /&gt;
 Sent when someone NOTICE&amp;#039;es a channel&lt;br /&gt;
&lt;br /&gt;
 on_join&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, channel)&lt;br /&gt;
 Sent when a user joins a channel&lt;br /&gt;
&lt;br /&gt;
 on_part&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, channel, reason)&lt;br /&gt;
 Sent when a user parts a channel&lt;br /&gt;
&lt;br /&gt;
 on_quit&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, reason)&lt;br /&gt;
 Sent when a user quits IRC&lt;br /&gt;
&lt;br /&gt;
 on_nick&lt;br /&gt;
 function handler(netno, old_nick, new_nick)&lt;br /&gt;
 Sent when a user changed their nickname on IRC&lt;br /&gt;
&lt;br /&gt;
 on_topic&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, channel, topic)&lt;br /&gt;
 Sent when the topic in a channel is changed&lt;br /&gt;
&lt;br /&gt;
 on_kick&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, channel, kicked_hostmask, kicked_nick, reason)&lt;br /&gt;
 Sent when a user is kicked from a channel&lt;br /&gt;
&lt;br /&gt;
 on_chmode&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, channel, modes)&lt;br /&gt;
 Sent when the channel modes have been changed&lt;br /&gt;
&lt;br /&gt;
 on_umode&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, modes)&lt;br /&gt;
 Sent when IRC user modes have been changed (not RadioBot [[User Flags]])&lt;br /&gt;
&lt;br /&gt;
 on_ban&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, channel, banmask)&lt;br /&gt;
 Sent when a ban has been added to an IRC channel&lt;br /&gt;
&lt;br /&gt;
 on_unban&lt;br /&gt;
 function handler(hostmask, nick, uflags, netno, channel, banmask)&lt;br /&gt;
 Sent when a ban has been removed from an IRC channel&lt;br /&gt;
&lt;br /&gt;
 remote&lt;br /&gt;
 function handler(sock, nick, uflags, cliversion, command, datalen, data)&lt;br /&gt;
 Sent when a packet has been received from a remote client like the DJ Client or WebRequest. See [[Remote Commands]] for details.&lt;br /&gt;
 Replied can be sent with the SendRemoteReply() command.&lt;br /&gt;
&lt;br /&gt;
 ss_dragcomplete&lt;br /&gt;
 function handler(song_changed)&lt;br /&gt;
 Sent when the SS scraper is done scraping servers. song_changed is a boolean set to true if the current song title has changed.&lt;br /&gt;
 Note: Unlike other callbacks, there is no return value in this handler.&lt;br /&gt;
&lt;br /&gt;
{{ircbot programming}}&lt;/div&gt;</summary>
		<author><name>Indy</name></author>
	</entry>
</feed>