summaryrefslogtreecommitdiff
path: root/plugins/IgnoreState/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/IgnoreState/src/main.cpp')
-rw-r--r--plugins/IgnoreState/src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/IgnoreState/src/main.cpp b/plugins/IgnoreState/src/main.cpp
index 505dcfe9bf..d97e81254b 100644
--- a/plugins/IgnoreState/src/main.cpp
+++ b/plugins/IgnoreState/src/main.cpp
@@ -138,8 +138,6 @@ int onModulesLoaded(WPARAM wParam,LPARAM lParam)
fill_filter();
- hExtraIcon = ExtraIcon_Register("ignore", LPGEN("Ignore State"), "ignore_full");
-
// Set initial value for all contacts
for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
applyExtraImage(hContact);
@@ -170,6 +168,9 @@ extern "C" int __declspec(dllexport) Load(void)
HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
HookEvent(ME_DB_CONTACT_SETTINGCHANGED, onContactSettingChanged);
+
+ hExtraIcon = ExtraIcon_Register("ignore", LPGEN("Ignore State"), "ignore_full");
+
return 0;
}