diff options
author | Adam <Adam@anope.org> | 2013-09-16 06:28:48 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-16 06:47:42 -0400 |
commit | e3c05efe5e5085f3db14f1532a92de460b899ab5 (patch) | |
tree | a486474c1eff7e04a7167c1d069d23a93406e171 /modules/commands/os_news.cpp | |
parent | 8cbaf7e9904e3cc6aca22566c83ea25959357d48 (diff) |
Remove static variables from functions in modules which causes them to be marked as gnu unique objects, which breaks dlclose()/dlopen() on g++ 4.5+
Diffstat (limited to 'modules/commands/os_news.cpp')
-rw-r--r-- | modules/commands/os_news.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp index bdff3c5eb..487a45300 100644 --- a/modules/commands/os_news.cpp +++ b/modules/commands/os_news.cpp @@ -325,6 +325,8 @@ class CommandOSRandomNews : public NewsBase } }; +static unsigned cur_rand_news = 0; + class OSNews : public Module { Serialize::Type newsitem_type; @@ -356,7 +358,6 @@ class OSNews : public Module else if (Type == NEWS_RANDOM) msg = _("[\002Random News\002 - %s] %s"); - static unsigned cur_rand_news = 0; unsigned displayed = 0, news_count = Config->GetModule(this)->Get<unsigned>("newscount", "3"); for (unsigned i = 0, end = newsList.size(); i < end; ++i) { |