Time Nick Message 00:27 swift110_ hey 00:27 gry Hi swift110_. 00:28 swift110_ sup gry how are you? 00:28 gry OK. Figuring out computer things at the moment. 00:33 swift110_ oh i see 00:33 swift110_ whats going on with your computer gry 00:33 gry Homework 00:34 swift110_ oh ok 04:36 swift110 hey all 04:38 gry hi 04:51 SwissalpS o/ 04:53 swift110 how r u gry and SwissalpS 04:53 gry I'm ok. I'm in Oceania, so it is late afternoon here. 05:01 SwissalpS still figuring out if I can set tools metadata as soon as crafted without catching all crafts happening. But time to go for me now \o 15:32 deltasquared is it possible to override how chat appears when sent to clients *if no other chat handler handles it*? which is to say, can I hook chat formatting without using an on_chat handler 15:33 deltasquared alternatively, is there a function that will format a message as if it came from a certain player? 15:33 deltasquared the use case is a sort of "shadowmute" mod for dealing with troll players. they'll still think they are talking, but nobody else will see it. 15:34 deltasquared so I'd need something that can be called to produce text that would look like a regular chat message in essence, but would only be set to the shadow muted player. 15:39 SwissalpS I don't think you can do that with a mod without using on_chat hook 15:40 SwissalpS we use beerchat and there we have a command to force spamers to seperate channel 15:41 SwissalpS https://github.com/minetest-beerchat/beerchat 15:41 deltasquared I was opting for something a little more simple on the server I moderate. if it's only a mod for shadowmuting (one thing, and doing it well) then it's a bit easier to make the case for :) 15:42 deltasquared I guess I can always just make a function that formats it as is the default currently if all else fails. though if that format ever changes it'd be detectable, but it may be the best I can do. 15:42 SwissalpS you could by default put new players on a newb channel and then once they learn to use channel switching, allow them to join actual discussion 15:43 SwissalpS xban is the only somewhat sure way to get rid of annoying players 15:43 deltasquared well on this particular server there is already a rules dialog with a randomised keyword (so they have to *read it all*). it has crossed my mind to suggest to the owner that we alter that so shout isn't in the base set and grant shout when they pass the rule check. 15:43 deltasquared SwissalpS: except when they keep coming back past even that 15:44 deltasquared we've had a few cases of very determined players. they appeared to be IP rotating each time along with a new username. 15:44 SwissalpS yeah, VPN is also a way to avoid xban but they need a new user-name 15:44 deltasquared thankfully such cases are rare, but I'd prefer to slow them down as much as possible - shadowmute can achieve that because they may not realise what is happening at first 15:45 SwissalpS also beerchat offers /mute command so any player can just mute them 15:45 deltasquared true, but the idea is to automatically mute all players so nobody can respond even if they wanted to. that way the troll may just think they're not going to get their "hit" and just move elsewhere. 15:46 deltasquared *mute them to all players 15:46 SwissalpS that can easily be implemented as a moderator only command 15:46 deltasquared hence my query about chat formatting. 15:47 SwissalpS I'm adding that as an issue, thanks for the idea :) 15:47 deltasquared lawl! sure I guess xD 15:47 deltasquared one issue I can think of is with irc relays 15:48 deltasquared any such shadowmute handler would have to have higher "precedence" than such relays to ensure that the dumbness wouldn't leak to IRC either. 15:49 SwissalpS yes, certainly would have to mute to irc too 15:51 deltasquared https://github.com/minetest-mods/irc certainly appears to use register_on_chat_message. I'm working on the assumption that marking it as "handled" by returning true from the callback function prevents further callers. 15:51 deltasquared specifically https://github.com/minetest-mods/irc/blob/master/callback.lua#L22 16:57 rubenwardy deltasquared: minetest.format_chat_messagw 18:04 deltasquared rubenwardy: ah, excellent. it would appear my choice of search times when grepping for it failed me this time. 18:05 deltasquared unrelated note, is there a ready-made way to register a privilege that requires priv A *or* priv B? I'd like to be able to grant a read priv and a modify priv for instance, where the modify priv will be valid for everything the read priv can do. 18:05 deltasquared it wouldn't be too hard to implement manually, just curious if I'd be re-inventing the wheel. 19:15 MinetestBot 02[git] 04IFRFSX -> 03minetest/minetest_game: Add traditional Chinese translation (#2579) 13f255e36 https://git.io/JvZDc (152020-02-06T19:15:13Z) 23:40 Wuzzy Now presenting the Retro Plus texture pack! 23:40 Wuzzy https://forum.minetest.net/viewtopic.php?f=4&t=24065