After running the code with commit 50e16b8624 (that introduced the ability
of using nicks), I've noticed in rare occasions we could face a crash on
topic/system_header change due to invalid nickname. I believe this is related
to other users clearing their nicks after the start of matterircd.
The way I've fixed that was to add some additional checks to system_header
change event, and then was able to run several weeks without crashes
(although the checks were triggered sometimes, preventing the NIL crash).
Notice the Warn was never reached though, but I kept that for safety!
Fixes: 50e16b8624 ["Add option to use Nickname instead of Username (#273)"]
Signed-off-by: Guilherme G. Piccoli gpiccoli@canonical.com
After running the code with commit 50e16b8624 (that introduced the ability of using nicks), I've noticed in rare occasions we could face a crash on topic/system_header change due to invalid nickname. I believe this is related to other users clearing their nicks after the start of matterircd.
The way I've fixed that was to add some additional checks to system_header change event, and then was able to run several weeks without crashes (although the checks were triggered sometimes, preventing the NIL crash). Notice the Warn was never reached though, but I kept that for safety!
Fixes: 50e16b8624 ["Add option to use Nickname instead of Username (#273)"] Signed-off-by: Guilherme G. Piccoli gpiccoli@canonical.com