Event Timeline
Comment Actions
You can probably remove the if around L18 – logname should always return something, so it’s probably safer to inject it into the message unconditionally.
Comment Actions
@LucasWerkmeister I'm still having an issue with wm-bot being credited as the sender of the message (see https://tools.wmflabs.org/sal/finding-glams?d=2019-10-14).
If I remove > /dev/tcp/wm-bot2.wm-bot.eqiad.wmflabs/64834 to test locally it correctly puts my username in so it must somehow be evaluating $su_user at a later stage when it has been passed to wm-bot