summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src/mydetails.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MyDetails/src/mydetails.cpp')
-rw-r--r--plugins/MyDetails/src/mydetails.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/MyDetails/src/mydetails.cpp b/plugins/MyDetails/src/mydetails.cpp
index 8179b90600..ddd65b54ad 100644
--- a/plugins/MyDetails/src/mydetails.cpp
+++ b/plugins/MyDetails/src/mydetails.cpp
@@ -357,10 +357,10 @@ static INT_PTR PluginCommand_SetMyNicknameUI(WPARAM wParam,LPARAM lParam)
static INT_PTR PluginCommand_SetMyNickname(WPARAM wParam,LPARAM lParam)
{
- char * proto = (char *)wParam;
+ char *proto = (char*)wParam;
if (proto != NULL) {
for (int i = 0 ; i < protocols->GetSize() ; i++) {
- if (_stricmp(protocols->Get(i)->name, proto) == 0) {
+ if ( _stricmp(protocols->Get(i)->name, proto) == 0) {
if ( !protocols->Get(i)->CanSetNick())
return -2;
@@ -378,12 +378,11 @@ static INT_PTR PluginCommand_SetMyNickname(WPARAM wParam,LPARAM lParam)
static INT_PTR PluginCommand_GetMyNickname(WPARAM wParam,LPARAM lParam)
{
- TCHAR* ret = (TCHAR*)lParam;
- char * proto = (char *)wParam;
-
+ TCHAR *ret = (TCHAR*)lParam;
if (ret == NULL)
return -1;
+ char *proto = (char*)wParam;
if (proto == NULL) {
if (protocols->default_nick != NULL)
lstrcpyn(ret, protocols->default_nick, MS_MYDETAILS_GETMYNICKNAME_BUFFER_SIZE);