1
+
1
2
IRC Mod for Minetest
2
3
====================
3
4
4
5
Introduction
5
6
------------
7
+
6
8
This mod is just a glue between IRC and Minetest. It provides two-way
7
9
communication between the in-game chat, and an arbitrary IRC channel.
8
10
9
- The forum topic is at https://forum.minetest.net/viewtopic.php?f=11&t=3905
11
+ The forum topic is [ here] [ forum ] .
12
+
13
+ [ forum ] : https://forum.minetest.net/viewtopic.php?f=11&t=3905
10
14
11
15
12
16
Installing
@@ -17,14 +21,14 @@ Quick one line install for Linux:
17
21
cd <Mods directory> && git clone --recursive https://github.com/minetest-mods/irc.git
18
22
19
23
Please change ` <Mods directory> ` to fit your installation of Minetest.
20
- For more information, see [ the wiki] ( http:// wiki.minetest.net/Installing_mods ) .
24
+ For more information, see [ the wiki] [ wiki ] .
21
25
22
26
The IRC mod's git repository uses submodules, therefore you will have to run
23
27
` git submodule init ` when first installing the mod (unless you used
24
28
` --recursive ` as above), and ` git submodule update ` every time that a submodule
25
- is updated. These steps can be combined into ` git submodule update --init ` .
29
+ is updated. These steps can be combined into ` git submodule update --init ` .
26
30
27
- You'll need to install LuaSocket. You can do so with your package manager on
31
+ You'll need to install LuaSocket. You can do so with your package manager on
28
32
many distributions, for example:
29
33
30
34
# # On Arch Linux:
@@ -35,95 +39,100 @@ many distributions, for example:
35
39
# luarocks install luasocket
36
40
37
41
You will also need to add IRC to your trusted mods if you haven't disabled mod
38
- security. Here's an example configuration line:
42
+ security. Here's an example configuration line:
39
43
40
44
secure.trusted_mods = irc
41
45
46
+ [ wiki ] : https://wiki.minetest.net/Installing_mods
47
+
42
48
43
49
Settings
44
50
--------
51
+
45
52
All settings are changed in ` minetest.conf ` . If any of these settings
46
53
are not set, the default value is used.
47
54
48
- * ` irc.server ` (string)
49
- The address of the IRC server to connect to.
55
+ * ` irc.server ` (string):
56
+ The address of the IRC server to connect to.
57
+
58
+ * ` irc.channel ` (string):
59
+ The IRC channel to join.
50
60
51
- * ` irc.channel ` (string)
52
- The IRC channel to join.
61
+ * ` irc.interval ` (number, default 2.0):
62
+ This prevents the server from flooding. It should be at
63
+ least 2.0 but can be higher. After four messages this much
64
+ time must pass between folowing messages.
53
65
54
- * ` irc.interval ` (number, default 2.0)
55
- This prevents the server from flooding. It should be at
56
- least 2.0 but can be higher. After four messages this much
57
- time must pass between folowing messages.
66
+ * ` irc.nick ` (string):
67
+ Nickname the server uses when it connects to IRC.
58
68
59
- * ` irc.nick ` (string)
60
- Nickname the server uses when it connects to IRC .
69
+ * ` irc.password ` (string, default nil):
70
+ Password to use when connecting to the server .
61
71
62
- * ` irc.password ` (string, default nil)
63
- Password to use when connecting to the server .
72
+ * ` irc.NSPass ` (string, default nil):
73
+ NickServ password. Don't set this if you use SASL authentication .
64
74
65
- * ` irc.NSPass ` (string, default nil)
66
- NickServ password. Don't set this if you use SASL authentication.
75
+ * ` irc.sasl.pass ` (string, default nil):
76
+ SASL password, same as nickserv password.
77
+ You should use this instead of NickServ authentication
78
+ if the server supports it.
67
79
68
- * ` irc.sasl.pass ` (string, default nil)
69
- SASL password, same as nickserv password.
70
- You should use this instead of NickServ authentication
71
- if the server supports it.
80
+ * ` irc.sasl.user ` (string, default ` irc.nick ` ):
81
+ The SASL username. This should normaly be set to your
82
+ NickServ account name.
72
83
73
- * ` irc.sasl.user ` (string , default ` irc.nick ` )
74
- The SASL username. This should normaly be set to your NickServ account name .
84
+ * ` irc.debug ` (boolean , default false):
85
+ Whether to output debug information .
75
86
76
- * ` irc.debug ` (boolean, default false)
77
- Whether to output debug information.
87
+ * ` irc.disable_auto_connect ` (boolean, default false):
88
+ If false, the bot is connected by default. If true, a player with
89
+ the 'irc_admin' privilege has to use the ` /irc_connect ` command to
90
+ connect to the server.
78
91
79
- * ` irc.disable_auto_connect ` (boolean, default false)
80
- If false, the bot is connected by default. If true, a player with
81
- the 'irc_admin' privilege has to use the /irc_connect command to
82
- connect to the server.
92
+ * ` irc.disable_auto_join ` (boolean, default false):
93
+ If false, players join the channel automatically upon entering the
94
+ game. If true, each user must manually use the ` /join ` command to
95
+ join the channel. In any case, the players may use the ` /part `
96
+ command to opt-out of being in the channel.
83
97
84
- * ` irc.disable_auto_join ` (boolean, default false)
85
- If false, players join the channel automatically upon entering the
86
- game. If true, each user must manually use the /join command to
87
- join the channel. In any case, the players may use the /part
88
- command to opt-out of being in the channel.
98
+ * ` irc.send_join_part ` (boolean, default true):
99
+ Determines whether to send player join and part messages to the channel.
89
100
90
- * ` irc.send_join_part ` (boolean, default true)
91
- Determines whether to send player join and part messages to the channel.
92
101
93
102
Usage
94
103
-----
95
104
96
105
Once the game is connected to the IRC channel, chatting in-game will send
97
- messages to the channel, and will be visible by anyone. Also, messages sent
106
+ messages to the channel, and will be visible by anyone. Also, messages sent
98
107
to the channel will be visible in-game.
99
108
100
- Messages that begin with ` [off] ` from in-game or IRC are not sent to the other side.
109
+ Messages that begin with ` [off] ` from in-game or IRC are not sent to the
110
+ other side.
101
111
102
112
This mod also adds a few chat commands:
103
113
104
- * ` /irc_msg <nick> <message> `
105
- Sends a private message to a IRC user.
114
+ * ` /irc_msg <nick> <message> ` :
115
+ Send a private message to a IRC user.
106
116
107
- * ` /join `
108
- Join the IRC chat.
117
+ * ` /join ` :
118
+ Join the IRC chat.
109
119
110
- * ` /part `
111
- Part the IRC chat.
120
+ * ` /part ` :
121
+ Part the IRC chat.
112
122
113
- * ` /irc_connect `
114
- Connect the bot manually to the IRC network.
123
+ * ` /irc_connect ` :
124
+ Connect the bot manually to the IRC network.
115
125
116
- * ` /irc_disconnect `
117
- Disconnect the bot manually from the IRC network (this does not
118
- shutdown the game).
126
+ * ` /irc_disconnect ` :
127
+ Disconnect the bot manually from the IRC network (this does not
128
+ shutdown the game).
119
129
120
- * ` /irc_reconnect `
121
- Equivilant to `/irc_disconnect` followed by `/irc_connect`.
130
+ * ` /irc_reconnect ` :
131
+ Equivalent to ` /irc_disconnect ` followed by ` /irc_connect ` .
122
132
123
- You can also send private messages from IRC to in-game players.
124
-
125
- To do so, you must send a private message to the bot (set with
126
- the ` irc.nick ` option above), in the following format:
133
+ You can also send private messages from IRC to in-game players
134
+ by sending a private message to the bot (set with the ` irc.nick `
135
+ option above), in the following format:
127
136
128
137
@playername message
129
138
@@ -132,21 +141,29 @@ a private message from IRC with:
132
141
133
142
/msg server_nick @mtuser Hello!
134
143
135
- To avoid possible misunderstandings (since all in-game players use the
136
- same IRC user to converse with you), the "proxy" user will reject any
137
- private messages that are not in that format, and will send back a
138
- nice reminder as a private message.
144
+ The bot also supports some basic commands, which are invoked by saying
145
+ the bot name followed by either a colon or a comma and the command, or
146
+ sending a private message to it. For example: ` ServerBot: help whereis ` .
147
+
148
+ * ` help [<command>] ` :
149
+ Prints help about a command, or a list of supported commands if no
150
+ command is given.
151
+
152
+ * ` uptime ` :
153
+ Prints the server's running time.
139
154
140
- The bot also supports some basic commands, which are invoked by sending
141
- a private message to it. Use ` !list ` to get a list of commands, and
142
- ` !help <command> ` to get help about a specific command.
155
+ * ` whereis <player> ` :
156
+ Prints the coordinates of the given player.
157
+
158
+ * ` players ` :
159
+ Lists players currently in the server.
143
160
144
161
145
162
Thanks
146
163
------
147
164
148
165
I'd like to thank the users who supported this mod both on the Minetest
149
- Forums and on the #minetest channel. In no particular order:
166
+ Forums and on the ` #minetest ` channel. In no particular order:
150
167
151
168
0gb.us, ShadowNinja, Shaun/kizeren, RAPHAEL, DARGON, Calinou, Exio,
152
169
vortexlabs/mrtux, marveidemanis, marktraceur, jmf/john\_ minetest,
@@ -158,10 +175,7 @@ forum topic. Thanks to you all!
158
175
License
159
176
-------
160
177
161
- Copyright © 2012-2013 Diego Martínez
< [email protected] >
162
-
163
- See LICENSE.txt for licensing information.
164
-
165
- The files in the irc directory are part of the LuaIRC project.
166
- See irc/LICENSE.txt for licensing information.
178
+ See ` LICENSE.txt ` for details.
167
179
180
+ The files in the ` irc ` directory are part of the LuaIRC project.
181
+ See ` irc/LICENSE.txt ` for details.
0 commit comments