summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-11 04:27:32 -0500
committerAdam <Adam@anope.org>2011-03-11 04:27:32 -0500
commitbb3b421385c0516a6a7091d77f45290dfe3e710c (patch)
tree28d712e1f80818ea394ec2a3158553315f30882b /modules
parent1ee3d3d81034c2e2d8c1bf55db8963a50e35f363 (diff)
Global should send logon news
Diffstat (limited to 'modules')
-rw-r--r--modules/core/os_news.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/os_news.cpp b/modules/core/os_news.cpp
index 3fc5c2959..7a533cfdf 100644
--- a/modules/core/os_news.cpp
+++ b/modules/core/os_news.cpp
@@ -95,7 +95,7 @@ static void DisplayNews(User *u, NewsType Type)
if (Type == NEWS_RANDOM && i == current_news)
continue;
- u->SendMessage(OperServ, msg.c_str(), do_strftime(News[i]->time).c_str(), News[i]->Text.c_str());
+ u->SendMessage(Type != NEWS_OPER && Global ? Global : OperServ, msg.c_str(), do_strftime(News[i]->time).c_str(), News[i]->Text.c_str());
++displayed;