You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. We have a mod in CTF that over-rides minetest.send_join/leave_message to hide the join and leave messages of a certain group of players. While that works for in-game messages, IRC bypasses the aforementioned functions and directly outputs the message to the channel (if set to send join/leave messages). So mods don't have the opportunity to suppress join/leave messages for select players, and other such use-cases.
I was wondering if IRC could instead override minetest.send_join/leave_message like so:
localold_join_func=minetest.send_join_messagefunctionminetest.send_join_message(player_name, ...)
//AnnounceplayerjoinonIRCchannelirc.say("*** "..name.." joined the game")
returnold_join_func(player_name, ...)
end
So then I can do:
localold_join_func-minetest.send_join_messagefunctionminetest.send_join_message(pname, ...)
-- Skip join message if player matches super special criteriaifnotsuper_special_criteria(pname) thenreturnold_join_func(pname, ...)
endend
Thoughts and discussion welcome. I'd be willing to implement this if people think this is a good idea.
The text was updated successfully, but these errors were encountered:
Hello. We have a mod in CTF that over-rides
minetest.send_join/leave_message
to hide the join and leave messages of a certain group of players. While that works for in-game messages, IRC bypasses the aforementioned functions and directly outputs the message to the channel (if set to send join/leave messages). So mods don't have the opportunity to suppress join/leave messages for select players, and other such use-cases.I was wondering if IRC could instead override
minetest.send_join/leave_message
like so:So then I can do:
Thoughts and discussion welcome. I'd be willing to implement this if people think this is a good idea.
The text was updated successfully, but these errors were encountered: