]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ojoin.cpp
Fix STATUSMSG tag messages not including the status in the target.
[user/henk/code/inspircd.git] / src / modules / m_ojoin.cpp
index c0626ec695357189dd4e4f6e343259176fe35349..0e924295c0977e7091994be4c58c94e42e1cd199 100644 (file)
@@ -1,7 +1,10 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2009 Taros <taros34@hotmail.com>
+ *   Copyright (C) 2019 Robby <robby@chatbelgie.be>
+ *   Copyright (C) 2013, 2017-2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012-2014, 2016 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2010 Craig Edwards <brain@inspircd.org>
  *   Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
@@ -57,11 +60,7 @@ class CommandOjoin : public SplitCommand
                        ServerInstance->SNO->WriteGlobalSno('a', user->nick+" used OJOIN to join "+channel->name);
 
                        if (notice)
-                       {
-                               const std::string msg = user->nick + " joined on official network business.";
-                               channel->WriteNotice(msg);
-                               ServerInstance->PI->SendChannelNotice(channel, 0, msg);
-                       }
+                               channel->WriteNotice(user->nick + " joined on official network business.");
                }
                else
                {