Handle 'Xfire Invitation Message' input request
This commit is contained in:
parent
eb6eed3b79
commit
6cffbaebf8
2 changed files with 13 additions and 2 deletions
|
@ -116,6 +116,17 @@ static void * requestInput(const char *title, const char *primary,const char *se
|
|||
LOG4CXX_WARN(logger, "Unhandled request input. primary=" << primaryString);
|
||||
}
|
||||
}
|
||||
else if (title) {
|
||||
std::string titleString(title);
|
||||
if (titleString == "Xfire Invitation Message") {
|
||||
LOG4CXX_INFO(logger, "Authorization Request Message: calling ok_cb(...)");
|
||||
((PurpleRequestInputCb) ok_cb)(user_data, "Please authorize me.");
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
LOG4CXX_WARN(logger, "Unhandled request input. title=" << titleString);
|
||||
}
|
||||
}
|
||||
else {
|
||||
LOG4CXX_WARN(logger, "Request input without primary string");
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@ FILE(GLOB SRC *.cpp)
|
|||
|
||||
ADD_EXECUTABLE(spectrum2 ${SRC})
|
||||
|
||||
ADD_DEPENDENCIES(spectrum2 spectrum_libpurple_backend)
|
||||
ADD_DEPENDENCIES(spectrum2 spectrum_libircclient-qt_backend)
|
||||
ADD_DEPENDENCIES(spectrum2 spectrum2_libpurple_backend)
|
||||
ADD_DEPENDENCIES(spectrum2 spectrum2_libircclient-qt_backend)
|
||||
|
||||
target_link_libraries(spectrum2 transport)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue