<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.minetest.org/index.php?action=history&amp;feed=atom&amp;title=Mods%2FIRC</id>
	<title>Mods/IRC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.minetest.org/index.php?action=history&amp;feed=atom&amp;title=Mods%2FIRC"/>
	<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Mods/IRC&amp;action=history"/>
	<updated>2026-04-25T22:27:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.4</generator>
	<entry>
		<id>https://wiki.minetest.org/index.php?title=Mods/IRC&amp;diff=12328&amp;oldid=prev</id>
		<title>&gt;ROllerozxa at 21:29, 23 December 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Mods/IRC&amp;diff=12328&amp;oldid=prev"/>
		<updated>2022-12-23T21:29:06Z</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;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:29, 23 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;ROllerozxa</name></author>
	</entry>
	<entry>
		<id>https://wiki.minetest.org/index.php?title=Mods/IRC&amp;diff=8563&amp;oldid=prev</id>
		<title>&gt;ROllerozxa at 21:29, 23 December 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Mods/IRC&amp;diff=8563&amp;oldid=prev"/>
		<updated>2022-12-23T21:29:06Z</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;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:29, 23 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;ROllerozxa</name></author>
	</entry>
	<entry>
		<id>https://wiki.minetest.org/index.php?title=Mods/IRC&amp;diff=4798&amp;oldid=prev</id>
		<title>&gt;ROllerozxa at 21:29, 23 December 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Mods/IRC&amp;diff=4798&amp;oldid=prev"/>
		<updated>2022-12-23T21:29:06Z</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;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:29, 23 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;ROllerozxa</name></author>
	</entry>
	<entry>
		<id>https://wiki.minetest.org/index.php?title=Mods/IRC&amp;diff=1033&amp;oldid=prev</id>
		<title>&gt;ROllerozxa at 21:29, 23 December 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Mods/IRC&amp;diff=1033&amp;oldid=prev"/>
		<updated>2022-12-23T21:29:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Mod Data &lt;br /&gt;
| name=IRC &lt;br /&gt;
| luaname=irc &lt;br /&gt;
| author=kaeza &lt;br /&gt;
| type=Server&lt;br /&gt;
| forum=[https://forum.minetest.net/viewtopic.php?f=11&amp;amp;t=3905 3905] &lt;br /&gt;
| source=[https://github.com/kaeza/minetest-irc Github]&lt;br /&gt;
}}&lt;br /&gt;
This [[Mods|mod]] lets you connect the chat between in-game and an arbitrary [[IRC]] channel via an IRC bot.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
&lt;br /&gt;
This mod can run in any Minetest version (tested on 0.4.3 up to 0.4.10).&lt;br /&gt;
&lt;br /&gt;
First of all, you will need to install the &amp;lt;code&amp;gt;luasocket&amp;lt;/code&amp;gt; library. For example, on Debian-based distributions:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install lua-socket&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Installing using Git ===&lt;br /&gt;
&lt;br /&gt;
First, the repo for the mod, then update the submodules:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
cd /path/to/minetest/mods&lt;br /&gt;
git clone https://github.com/kaeza/minetest-irc.git irc&lt;br /&gt;
cd irc&lt;br /&gt;
git submodule update --init&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will clone the LuaIRC library required for the mod.&lt;br /&gt;
&lt;br /&gt;
That's it! It should be ready to go, at least for testing if it works.&lt;br /&gt;
&lt;br /&gt;
=== Installing from zip archives ===&lt;br /&gt;
&lt;br /&gt;
Download the main mod from [https://github.com/kaeza/minetest-irc/archive/master.zip here], and LuaIRC from [https://github.com/ShadowNinja/LuaIRC/archive/master.zip here].&lt;br /&gt;
&lt;br /&gt;
Unzip &amp;lt;code&amp;gt;minetest-irc-master.zip&amp;lt;/code&amp;gt; into your &amp;lt;code&amp;gt;mods/&amp;lt;/code&amp;gt; directory, and rename the resulting directory to just &amp;lt;code&amp;gt;irc&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Unzip &amp;lt;code&amp;gt;LuaIRC-master.zip&amp;lt;/code&amp;gt; into the &amp;lt;code&amp;gt;mods/irc/&amp;lt;/code&amp;gt; directory, and rename the resulting directory to just &amp;lt;code&amp;gt;irc&amp;lt;/code&amp;gt; (so that you have &amp;lt;code&amp;gt;mods/irc/irc/&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
That's it! It should be ready to go, at least for testing if it works.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
Configuration for this mod is specified via &amp;lt;code&amp;gt;[[minetest.conf]]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The following options need to be specified for the mod to run:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
# IRC server to connect to&lt;br /&gt;
irc.server = your.server.name.com&lt;br /&gt;
&lt;br /&gt;
# Channel to connect the bot to&lt;br /&gt;
irc.channel = #your-channel&lt;br /&gt;
&lt;br /&gt;
# Nickname for the bot&lt;br /&gt;
irc.nick = YourBotName&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Basic configuration ===&lt;br /&gt;
&lt;br /&gt;
'''irc.server'''&lt;br /&gt;
:This is the server the bot will connect to.&lt;br /&gt;
&lt;br /&gt;
'''irc.port'''&lt;br /&gt;
:This is the port on the server the bot will connect to. Default is 6667 (standard IRC port).&lt;br /&gt;
&lt;br /&gt;
'''irc.channel'''&lt;br /&gt;
:This is the channel the bot will join upon connection.&lt;br /&gt;
&lt;br /&gt;
'''irc.nick'''&lt;br /&gt;
:This specifies the nickname of the bot.&lt;br /&gt;
&lt;br /&gt;
'''irc.username'''&lt;br /&gt;
:This specifies the username of the bot.&lt;br /&gt;
&lt;br /&gt;
'''irc.realname'''&lt;br /&gt;
:This specifies the realname of the bot.&lt;br /&gt;
&lt;br /&gt;
'''irc.NSPass'''&lt;br /&gt;
:Specifies the password to use to identify to NickServ. Default is empty, which means the bot will not be identified.&lt;br /&gt;
:How to set up an account may vary between IRC networks. Consult the documentation for your IRC network for more information.&lt;br /&gt;
&lt;br /&gt;
=== Advanced configuration ===&lt;br /&gt;
&lt;br /&gt;
Please refer to [https://github.com/kaeza/minetest-irc/blob/master/config.lua config.lua] in the mod's repository for all the available configuration settings.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Once you set up the mod and start the game server, your bot will connect to the specified IRC server and join the channel (see ''Basic configuration'' above).&lt;br /&gt;
&lt;br /&gt;
Any text you say in-game will be seen on the channel, and any text sent to the channel will be seen in-game.&lt;br /&gt;
&lt;br /&gt;
=== Chat commands ===&lt;br /&gt;
&lt;br /&gt;
The mod adds some chat commands that can be invoked in-game:&lt;br /&gt;
&lt;br /&gt;
'''/irc_connect'''&lt;br /&gt;
:Requires ''irc_admin'' privilege.&lt;br /&gt;
:Connects again to the IRC server. Used after using &amp;lt;code&amp;gt;/irc_disconnect&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''/irc_disconnect'''&lt;br /&gt;
:Requires ''irc_admin'' privilege.&lt;br /&gt;
:Disconnects from the IRC server.&lt;br /&gt;
&lt;br /&gt;
'''/irc_reconnect'''&lt;br /&gt;
:Requires ''irc_admin'' privilege.&lt;br /&gt;
:Reconnects again to the IRC server. This is effectively the same as using &amp;lt;code&amp;gt;/irc_disconnect&amp;lt;/code&amp;gt; followed by using &amp;lt;code&amp;gt;/irc_connect&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''/irc_part'''&lt;br /&gt;
:Parts (leaves) the channel. Your messages will not be visible in the channel, and channel messages will not be visible to you.&lt;br /&gt;
&lt;br /&gt;
'''/irc_join'''&lt;br /&gt;
:Joins the channel. Your messages will be visible in the channel, and channel messages will be visible to you. This is the default.&lt;br /&gt;
&lt;br /&gt;
'''/irc_quote &amp;lt;line&amp;gt;'''&lt;br /&gt;
:Requires ''irc_admin'' privilege.&lt;br /&gt;
:Send a line to the IRC server directly. This can be used to send arbitrary commands to the IRC server.&lt;br /&gt;
:Example: &amp;lt;code&amp;gt;/irc_quote PRIVMSG #thechannel :Hello!&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''/irc_msg &amp;lt;nickname&amp;gt; &amp;lt;message&amp;gt;'''&lt;br /&gt;
:Requires ''shout'' privilege.&lt;br /&gt;
:Send a private message to an user on IRC.&lt;br /&gt;
:Example: &amp;lt;code&amp;gt;/irc_msg OtherUser Hello!&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''/irc_names'''&lt;br /&gt;
:List the people currently in the IRC channel.&lt;br /&gt;
&lt;br /&gt;
In addition, it overrides the &amp;lt;code&amp;gt;/me&amp;lt;/code&amp;gt; command to send the action to IRC.&lt;br /&gt;
&lt;br /&gt;
=== Bot commands ===&lt;br /&gt;
&lt;br /&gt;
The mod adds some bot commands that can be invoked from IRC. The commands can be invoked in two ways:&lt;br /&gt;
* Write the name of the bot, followed by either a comma (',') or a colon (':'), followed by a space, and then the command. Example: &amp;lt;code&amp;gt;RandomBot: uptime&amp;lt;/code&amp;gt;&lt;br /&gt;
* Send the command directly to the bot as a private message. Example: &amp;lt;code&amp;gt;/msg RandomBot uptime&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you communicate with the bot via the channel, it responds in the channel. If you communicate via PM, it responds privately.&lt;br /&gt;
&lt;br /&gt;
'''help &amp;lt;command&amp;gt;'''&lt;br /&gt;
:Prints help about a bot command.&lt;br /&gt;
:Example: &amp;lt;code&amp;gt;help uptime&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''list'''&lt;br /&gt;
:Lists the available bot commands.&lt;br /&gt;
&lt;br /&gt;
'''uptime'''&lt;br /&gt;
:Outputs the amount of time the server has been up.&lt;br /&gt;
&lt;br /&gt;
'''players'''&lt;br /&gt;
:Outputs the names of the players currently in game.&lt;br /&gt;
&lt;br /&gt;
'''whereis &amp;lt;name&amp;gt;'''&lt;br /&gt;
:Outputs the location of the player named ''name''.&lt;br /&gt;
:Example: &amp;lt;code&amp;gt;whereis JohnDoe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other mods can register their own bot commands (see ''Application Programming Interface'' below).&lt;br /&gt;
&lt;br /&gt;
== Application Programming Interface ==&lt;br /&gt;
&lt;br /&gt;
There's an API for other mods to use. Please refer to [https://raw.githubusercontent.com/kaeza/minetest-irc/master/API.md API.md] in the mod distribution. (Note: the MarkDown view is currently broken).&lt;br /&gt;
&lt;br /&gt;
== Add-ons ==&lt;br /&gt;
&lt;br /&gt;
This is a list of add-on mods that explicitly support IRC mod API:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/ShadowNinja/minetest-irc_commands irc_commands] by ShadowNinja.&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
&lt;br /&gt;
=== GNU/Linux ===&lt;br /&gt;
&lt;br /&gt;
Many distributions install luasocket in a place that Minetest's builtin Lua library doesn't look in. The IRC mod adds some extra search paths, but it can't support esoteric configurations. This issue is manifested by Minetest exiting with the error &amp;quot;&amp;lt;code&amp;gt;Failed to load and run .../irc/init.lua&amp;lt;/code&amp;gt;&amp;quot;, complaining it can't find &amp;lt;code&amp;gt;socket&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;core.so&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To fix this, you have a few options:&lt;br /&gt;
&lt;br /&gt;
* Use LuaJIT, which isn't bundled with Minetest and is correctly configured by the distro.&lt;br /&gt;
* Create a symlink at &amp;lt;code&amp;gt;/usr/local/lib/lua/5.1/socket&amp;lt;/code&amp;gt; pointing to &amp;lt;code&amp;gt;/usr/i686-linux-gnu/lib/lua/5.1/socket&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Open &amp;lt;code&amp;gt;irc/init.lua&amp;lt;/code&amp;gt; ('''not''' &amp;lt;code&amp;gt;irc/irc/init.lua&amp;lt;/code&amp;gt;!), and add this line at the start:&lt;br /&gt;
:&amp;lt;source lang=&amp;quot;lua&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
ie.package.cpath = &amp;quot;/usr/i686-linux-gnu/lib/lua/5.1/?.so;&amp;quot;..ie.package.cpath&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Replace &amp;quot;i686-linux-gnu&amp;quot; with your architecture if different.  For example, Debian 8 requires:&lt;br /&gt;
:&amp;lt;source lang=&amp;quot;lua&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
ie.package.cpath = &amp;quot;/usr/lib/x86_64-linux-gnu/lua/5.1/?.so;&amp;quot;..ie.package.cpath&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mods]]&lt;/div&gt;</summary>
		<author><name>&gt;ROllerozxa</name></author>
	</entry>
</feed>