diff options
Diffstat (limited to 'plugins/Spamotron/src/spamotron.cpp')
| -rw-r--r-- | plugins/Spamotron/src/spamotron.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/plugins/Spamotron/src/spamotron.cpp b/plugins/Spamotron/src/spamotron.cpp index 2e5c9ed93b..3f7e3fe04e 100644 --- a/plugins/Spamotron/src/spamotron.cpp +++ b/plugins/Spamotron/src/spamotron.cpp @@ -173,7 +173,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam)  					db_unset(hContact, "CList", "NotOnList");
  				db_unset(hContact, "CList", "Delete");
  				if (_getOptB("ReplyOnSuccess", defaultReplyOnSuccess) && (_getCOptB(hContact, "MsgSent", 0))) {
 -					ptrA response(mir_utf8encodeT(_getOptS(buf, buflen, "SuccessResponse", defaultSuccessResponse)));
 +					T2Utf response(_getOptS(buf, buflen, "SuccessResponse", defaultSuccessResponse));
  					CallContactService(hContact, PSS_MESSAGE, 0, response);
  				}
  				return 0;
 @@ -239,7 +239,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam)  		db_unset(hContact, "CList", "Delete");
  		db_unset(hContact, "CList", "ResponseNum");
  		if (_getOptB("ReplyOnSuccess", defaultReplyOnSuccess)) {
 -			ptrA response(mir_utf8encodeT(_getOptS(buf, buflen, "SuccessResponse", defaultSuccessResponse)));
 +			T2Utf response(_getOptS(buf, buflen, "SuccessResponse", defaultSuccessResponse));
  			CallContactService(hContact, PSS_MESSAGE, 0,	response);
  		}
  		_notify(hContact, POPUP_APPROVED, TranslateT("Contact %s approved."), NULL);
 @@ -368,7 +368,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam)  		else
  			_getOptS(challengeW, maxmsglen, "Challenge", defaultChallenge);
  		ReplaceVars(challengeW, maxmsglen);
 -		CallContactService(hContact, PSS_MESSAGE, 0, ptrA(mir_utf8encodeT(challengeW)));
 +		CallContactService(hContact, PSS_MESSAGE, 0, T2Utf(challengeW));
  		_notify(hContact, POPUP_CHALLENGE, TranslateT("Sending plain challenge to %s."), message);
  		break;
 @@ -383,7 +383,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam)  		_setCOptD(hContact, "ResponseNum", _getCOptD(hContact, "ResponseNum", -1) + 1);
  		ReplaceVarsNum(challengeW, maxmsglen, _getCOptD(hContact, "ResponseNum", 0));
 -		CallContactService(hContact, PSS_MESSAGE, 0, ptrA(mir_utf8encodeT(challengeW)));
 +		CallContactService(hContact, PSS_MESSAGE, 0, T2Utf(challengeW));
  		_notify(hContact, POPUP_CHALLENGE, TranslateT("Sending round-robin challenge to %s."), message);
  		break;
 @@ -396,7 +396,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam)  		srand(time(NULL));
  		_setCOptD(hContact, "ResponseNum", rand() % get_response_num(buf));
  		ReplaceVarsNum(challengeW, maxmsglen, _getCOptD(hContact, "ResponseNum", 0));
 -		CallContactService(hContact, PSS_MESSAGE, 0, ptrA(mir_utf8encodeT(challengeW)));
 +		CallContactService(hContact, PSS_MESSAGE, 0, T2Utf(challengeW));
  		_notify(hContact, POPUP_CHALLENGE, TranslateT("Sending random challenge to %s."), message);
  		break;
 @@ -410,7 +410,7 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam)  			_getOptS(challengeW, maxmsglen, "ChallengeMath", defaultChallengeMath);
  		ReplaceVar(challengeW, maxmsglen, _T("%mathexpr%"), mexpr);
  		_setCOptD(hContact, "ResponseMath", a + b);
 -		CallContactService(hContact, PSS_MESSAGE, 0, ptrA(mir_utf8encodeT(challengeW)));
 +		CallContactService(hContact, PSS_MESSAGE, 0, T2Utf(challengeW));
  		_notify(hContact, POPUP_CHALLENGE, TranslateT("Sending math expression challenge to %s."), message);
  		break;
  	}
 | 
