diff options
Diffstat (limited to 'otr/menu.cpp')
-rw-r--r-- | otr/menu.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/otr/menu.cpp b/otr/menu.cpp index 88c385d..026f0fe 100644 --- a/otr/menu.cpp +++ b/otr/menu.cpp @@ -7,8 +7,7 @@ HANDLE hMenuBuildEvent, hStartItem, hStopItem; void FixMenuIcons() {
// fix menu icons
- CLISTMENUITEM menu;
- ZeroMemory(&menu,sizeof(menu));
+ CLISTMENUITEM menu = {0};
menu.cbSize=sizeof(menu);
menu.flags = CMIM_ICON;
@@ -51,7 +50,7 @@ int PrebuildContactMenu(WPARAM wParam, LPARAM lParam) { {
ConnContext *context = otrl_context_find(otr_user_state, uname, MODULE, proto, FALSE, 0, 0, 0);
- bool encrypted = context && context->msgstate == OTRL_MSGSTATE_ENCRYPTED;
+ bool encrypted = context && context->msgstate != OTRL_MSGSTATE_PLAINTEXT;
if(encrypted) {
CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hStopItem, (LPARAM)&mi);
mi.flags |= CMIF_HIDDEN;
|