summaryrefslogtreecommitdiff
path: root/plugins/MyDetails
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MyDetails')
-rw-r--r--plugins/MyDetails/src/data.cpp9
-rw-r--r--plugins/MyDetails/src/data.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp
index 638d0a928f..88f9b1eab1 100644
--- a/plugins/MyDetails/src/data.cpp
+++ b/plugins/MyDetails/src/data.cpp
@@ -273,11 +273,6 @@ void Protocol::GetAvatar()
}
-bool Protocol::CanGetNick()
-{
- return ServiceExists(MS_CONTACT_GETCONTACTINFO) != FALSE;
-}
-
int Protocol::GetNickMaxLength()
{
if (!ProtoServiceExists(name, PS_GETMYNICKNAMEMAXLENGTH))
@@ -291,10 +286,6 @@ int Protocol::GetNickMaxLength()
TCHAR *Protocol::GetNick()
{
- // See if can get one
- if (!CanGetNick())
- return NULL;
-
// Get it
CONTACTINFO ci = { 0 };
ci.cbSize = sizeof(ci);
diff --git a/plugins/MyDetails/src/data.h b/plugins/MyDetails/src/data.h
index 2423da653d..6af422d56d 100644
--- a/plugins/MyDetails/src/data.h
+++ b/plugins/MyDetails/src/data.h
@@ -73,7 +73,6 @@ public:
void SetAvatar(const TCHAR *file_name);
//void SetAvatar(const char *file_name, HBITMAP hBmp);
- bool CanGetNick();
TCHAR *GetNick(); // Copy to cache and return a copy
int GetNickMaxLength();
bool CanSetNick();