summaryrefslogtreecommitdiff
path: root/protocols/Twitter
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Twitter')
-rw-r--r--protocols/Twitter/src/proto.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp
index 0d65b25b0c..d3c8fab685 100644
--- a/protocols/Twitter/src/proto.cpp
+++ b/protocols/Twitter/src/proto.cpp
@@ -256,26 +256,20 @@ int TwitterProto::OnBuildStatusMenu(WPARAM, LPARAM)
if (hRoot == NULL)
return 0;
- char text[200];
- mir_strcpy(text, m_szModuleName);
- char *tDest = text + mir_strlen(text);
-
TMO_MenuItem mi = { 0 };
- mi.pszService = text;
-
mi.root = hRoot;
mi.flags = CMIF_TCHAR;
mi.position = 1001;
- Menu_AddStatusMenuItem(&mi);
+ Menu_AddStatusMenuItem(&mi, m_szModuleName);
// TODO: Disable this menu item when offline
// "Send Tweet..."
- CreateProtoService("/Tweet", &TwitterProto::OnTweet);
- mir_strcpy(tDest, "/Tweet");
+ mi.pszService = "/Tweet";
+ CreateProtoService(mi.pszService, &TwitterProto::OnTweet);
mi.name.t = LPGENT("Send Tweet...");
mi.position = 200001;
mi.hIcolibItem = GetIconHandle("tweet");
- Menu_AddStatusMenuItem(&mi);
+ Menu_AddStatusMenuItem(&mi, m_szModuleName);
return 0;
}