Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
irc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
irc
Commits
d5ad8ffc
Commit
d5ad8ffc
authored
8 years ago
by
tai
Committed by
Diego Martínez
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add IRC messages to log.
parent
0f6e1dac
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
messages.lua
+5
-1
5 additions, 1 deletion
messages.lua
player_part.lua
+1
-1
1 addition, 1 deletion
player_part.lua
with
6 additions
and
2 deletions
messages.lua
+
5
−
1
View file @
d5ad8ffc
...
...
@@ -3,11 +3,15 @@
irc
.
msgs
=
irc
.
lib
.
msgs
function
irc
:
logChat
(
message
)
minetest
.
log
(
"action"
,
"IRC CHAT: "
..
message
)
end
function
irc
:
sendLocal
(
message
)
minetest
.
chat_send_all
(
message
)
irc
:
logChat
(
message
)
end
function
irc
:
playerMessage
(
name
,
message
)
return
(
"<%s> %s"
):
format
(
name
,
message
)
end
This diff is collapsed.
Click to expand it.
player_part.lua
+
1
−
1
View file @
d5ad8ffc
...
...
@@ -65,5 +65,5 @@ function irc:sendLocal(message)
for
name
,
_
in
pairs
(
self
.
joined_players
)
do
minetest
.
chat_send_player
(
name
,
message
)
end
irc
:
logChat
(
message
)
end
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