[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:
---------------------+--------------------------
 Hi,

 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
 pidgin...

 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
 https://developer.pidgin.im/doxygen/dev2.x.y/html/conversation-
 signals.html#sending-chat-msg and written this :

 {{{
     #!/usr/local/bin/python
     bus = dbus.SessionBus()
     obj = bus.get_object("im.pidgin.purple.PurpleService",
 "/im/pidgin/purple/PurpleObject")
     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>
Pidgin


More information about the Tracker mailing list