diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-08-25 00:03:38 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-08-25 00:37:04 +0200 |
commit | 7aacf739504c81305fb773426cc778e00233b8f4 (patch) | |
tree | 4099711b8908799e908f4e3599530368afc629dd /src/users.cpp | |
parent | d6861984e89ecf159efcebcf8c4ef12116e3aabd (diff) |
Add a config option to enable/disable the welcome notice sent to clients after successful registration
Fixes #284 reported by @hoggeh
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 459b9e3ce..6e282f7c0 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -770,7 +770,8 @@ void LocalUser::FullConnect() if (quitting) return; - this->WriteServ("NOTICE Auth :Welcome to \002%s\002!",ServerInstance->Config->Network.c_str()); + if (ServerInstance->Config->WelcomeNotice) + this->WriteServ("NOTICE Auth :Welcome to \002%s\002!",ServerInstance->Config->Network.c_str()); this->WriteNumeric(RPL_WELCOME, "%s :Welcome to the %s IRC Network %s!%s@%s",this->nick.c_str(), ServerInstance->Config->Network.c_str(), this->nick.c_str(), this->ident.c_str(), this->host.c_str()); this->WriteNumeric(RPL_YOURHOSTIS, "%s :Your host is %s, running version %s",this->nick.c_str(),ServerInstance->Config->ServerName.c_str(),BRANCH); this->WriteNumeric(RPL_SERVERCREATED, "%s :This server was created %s %s", this->nick.c_str(), __TIME__, __DATE__); |