Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna
Commits
306d3d56
Commit
306d3d56
authored
8 years ago
by
Milan
Browse files
Options
Downloads
Patches
Plain Diff
add irc notes for /away and /re
parent
fbd45aa0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
commands.lua
+5
-3
5 additions, 3 deletions
commands.lua
depends.txt
+1
-0
1 addition, 0 deletions
depends.txt
with
6 additions
and
3 deletions
commands.lua
+
5
−
3
View file @
306d3d56
...
...
@@ -14,7 +14,8 @@ minetest.register_on_chat_message(function(name, message, playername, player)
if
message
:
sub
(
0
,
#
cmd
)
==
cmd
then
if
message
==
'/away'
then
local
player
=
minetest
.
env
:
get_player_by_name
(
name
)
minetest
.
chat_send_all
(
name
..
" is now away from keyboard! "
)
minetest
.
chat_send_all
(
name
..
" is now away from keyboard!"
)
irc
:
say
(
string.format
(
'*** %s is now away from keyboard.'
,
player
:
get_player_name
()))
return
true
--deds to sfan5
end
end
...
...
@@ -22,8 +23,9 @@ minetest.register_on_chat_message(function(name, message, playername, player)
if
message
:
sub
(
0
,
#
cmd
)
==
cmd
then
if
message
==
'/re'
then
local
player
=
minetest
.
env
:
get_player_by_name
(
name
)
minetest
.
chat_send_all
(
name
..
" is no longer away from keyboard! "
)
return
true
--added by AnFiadhChu
minetest
.
chat_send_all
(
name
..
" is no longer away from keyboard!"
)
irc
:
say
(
string.format
(
'*** %s is no longer away from keyboard.'
,
player
:
get_player_name
()))
return
true
end
end
local
cmd
=
"/hacmd"
...
...
This diff is collapsed.
Click to expand it.
depends.txt
+
1
−
0
View file @
306d3d56
default
irc
darkage ?
building_blocks ?
teleport_potion ?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment