soc.2009.transport: 22c6d8c1: fixed Adhoc commands for PurpleBuddy nod...
hanzz at soc.pidgin.im
hanzz at soc.pidgin.im
Tue Jun 2 11:50:34 EDT 2009
-----------------------------------------------------------------
Revision: 22c6d8c176c85b7fb393feae0f2746458f1ef0da
Ancestor: 37285cd95d40d787d202f0341750b168233c549d
Author: hanzz at soc.pidgin.im
Date: 2009-06-02T15:47:11
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/22c6d8c176c85b7fb393feae0f2746458f1ef0da
Modified files:
adhochandler.cpp
ChangeLog:
fixed Adhoc commands for PurpleBuddy node
-------------- next part --------------
============================================================
--- adhochandler.cpp e70fc56370be6e2056c0fd5c55ae8f29ed98bb61
+++ adhochandler.cpp 7725c11e07e7667ba31c5e5697aac329ee0ae351
@@ -91,7 +91,7 @@ Disco::ItemList GlooxAdhocHandler::handl
for(l = ll = prpl_info->blist_node_menu((PurpleBlistNode*)buddy); l; l = l->next) {
PurpleMenuAction *action = (PurpleMenuAction *) l->data;
- lst.push_back( new Disco::Item( main->jid(), (std::string) action->label, (std::string) action->label ) );
+ lst.push_back( new Disco::Item( _to.bare(), (std::string) action->label, (std::string) action->label ) );
purple_menu_action_free(action);
}
}
@@ -152,7 +152,7 @@ bool GlooxAdhocHandler::handleIq( const
GList *l, *ll;
PurpleConnection *gc = purple_account_get_connection(user->account());
PurplePlugin *plugin = gc && PURPLE_CONNECTION_IS_CONNECTED(gc) ? gc->prpl : NULL;
- PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(plugin);
+ PurplePluginProtocoilInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(plugin);
if(!prpl_info || !prpl_info->blist_node_menu)
return true;
@@ -167,7 +167,7 @@ bool GlooxAdhocHandler::handleIq( const
callback((PurpleBlistNode*)buddy, action->data);
IQ _s(IQ::Result, stanza.from().full(), stanza.id());
- _s.setFrom(main->jid());
+ _s.setFrom(stanza.to());
Tag *s = _s.tag();
Tag *c = new Tag("command");
More information about the Commits
mailing list