summaryrefslogtreecommitdiff
path: root/src/cmd_invite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_invite.cpp')
-rw-r--r--src/cmd_invite.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd_invite.cpp b/src/cmd_invite.cpp
index a6e82d281..72902998c 100644
--- a/src/cmd_invite.cpp
+++ b/src/cmd_invite.cpp
@@ -86,6 +86,12 @@ CmdResult cmd_invite::Handle (const char** parameters, int pcnt, userrec *user)
case ServerConfig::INVITE_ANNOUNCE_OPS:
c->WriteAllExceptSender(user, true, '@', "NOTICE %s :*** %s invited %s into the channel", c->name, user->nick, u->nick);
break;
+ case ServerConfig::INVITE_ANNOUNCE_DYNAMIC:
+ if (c->IsModeSet('i'))
+ c->WriteAllExceptSender(user, true, '@', "NOTICE %s :*** %s invited %s into the channel", c->name, user->nick, u->nick);
+ else
+ c->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :*** %s invited %s into the channel", c->name, user->nick, u->nick);
+ break;
default:
/* Nobody */
break;