Changeset - f46cd8f14c48
[Not reviewed]
0 2 0
HanzZ - 14 years ago 2011-12-09 16:31:48
hanzz.k@gmail.com
Handle ICQ related requestInput requests
2 files changed with 11 insertions and 0 deletions:
0 comments (0 inline, 0 general)
backends/libcommuni/session.cpp
Show inline comments
 
@@ -221,5 +221,6 @@ void MyIrcSession::onMessageReceived(IrcMessage *message) {
 
		case IrcMessage::Numeric:
 
			on_numericMessageReceived(message);
 
			break;
 
		default:break;
 
	}
 
}
backends/libpurple/main.cpp
Show inline comments
 
@@ -441,6 +441,16 @@ static void * requestInput(const char *title, const char *primary,const char *se
 
			((PurpleRequestInputCb) ok_cb)(user_data, "Please authorize me.");
 
			return NULL;
 
		}
 
		else if (primaryString == "Authorization Request Message:") {
 
			LOG4CXX_INFO(logger, "Authorization Request Message: calling ok_cb(...)");
 
			((PurpleRequestInputCb) ok_cb)(user_data, "Please authorize me.");
 
			return NULL;
 
		}
 
		else if (primaryString == "Authorization Denied Message:") {
 
			LOG4CXX_INFO(logger, "Authorization Deined Message: calling ok_cb(...)");
 
			((PurpleRequestInputCb) ok_cb)(user_data, "Authorization denied.");
 
			return NULL;
 
		}
 
		else {
 
			LOG4CXX_WARN(logger, "Unhandled request input. primary=" << primaryString);
 
		}
0 comments (0 inline, 0 general)