[Pidgin] #16783: Trying dbus : send automaticly a message in xmpp room...

Pidgin trac at pidgin.im
Wed Oct 14 09:52:08 EDT 2015

#16783: Trying dbus : send automaticly a message in xmpp room...
 Reporter:  Hernou1  |      Owner:  EionRobb
     Type:  defect   |     Status:  new
Milestone:           |  Component:  unclassified
  Version:  2.10.11  |   Keywords:

 I need to set automaticly some user in moderator in some of my xmpp room

 so, I try to writte a script who will be launched with the alert of

 I need to send a message, on the account powabanga at jappix.com in the room
 cellier at muc.jappix.com...

 I I find this documentation :  https://developer.pidgin.im/wiki/DbusHowto
 signals.html#sending-chat-msg and written this :

     bus = dbus.SessionBus()
     obj = bus.get_object("im.pidgin.purple.PurpleService",
     purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")

     void (*sending_chat_msg)(PurpleAccount powabanga at jappix.com, char test
 script, int cellier at muc.jappix.com);


 but the answer is :

 $ python '/home/lio/Documents/trucs/scripts/dbuspidgin'
   File "/home/lio/Documents/trucs/scripts/dbuspidgin", line 6
     void (*sending_chat_msg)(PurpleAccount *powabanga at jappix.com, char
 **test script, int cellier at muc.jappix.com)
 SyntaxError: invalid syntax

 Something is wrong, but I don't know what... :-(

Ticket URL: <https://developer.pidgin.im/ticket/16783>
Pidgin <https://pidgin.im>

More information about the Tracker mailing list