summaryrefslogtreecommitdiff
path: root/otr/menu.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-17 22:51:32 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-17 22:51:32 +0000
commit7a2e5720ff22302dc2aaf923c2638f6569ed865f (patch)
tree63d2e2ee5912c36782c74c6ec2d90e2736a4ea90 /otr/menu.cpp
parent3f003cfd5b287775987d84450a0c00e0a12dfe57 (diff)
show 'stop otr' menu item for finished sessions
unhook settingchanged properly switch to finished state on reception of disconnected tlv show messages (honouring 'option inline') for start/stop session git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@173 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'otr/menu.cpp')
-rw-r--r--otr/menu.cpp5
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;