mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
missingmotd: Include nick in IRC numeric command
Since the nick argument is missing, "MOTD File is missing" is taking the nicks place and could lead to client confusion that the 422 command is sent to "MOTD File is missing".
This commit is contained in:
@@ -15,13 +15,14 @@
|
||||
*/
|
||||
|
||||
#include <znc/Modules.h>
|
||||
#include <znc/Client.h>
|
||||
|
||||
class CMissingMotd : public CModule {
|
||||
public:
|
||||
MODCONSTRUCTOR(CMissingMotd) {}
|
||||
|
||||
void OnClientLogin() override {
|
||||
PutUser(":irc.znc.in 422 :MOTD File is missing");
|
||||
PutUser(":irc.znc.in 422 " + GetClient()->GetNick() + " :MOTD File is missing");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user