# HG changeset patch # User Stu Tomlinson # Date 1193592427 0 # Node ID b3ae0eb23df38faf2b493005bef79541d9175e31 # Parent 5af17c5a4a12afcd611ae3e05cc7d4460ae5844c# Parent acbbcf6b6b462ad7be9d9c402de572283a7d3432 merge of '022ff8d97a85c1c5ea7b66f7d6ce6c607fd12a32' and '7f71f284598d962a9074116360bce09e65458488' diff -r acbbcf6b6b46 -r b3ae0eb23df3 libpurple/dbus-analyze-functions.py --- a/libpurple/dbus-analyze-functions.py Sun Oct 28 17:25:18 2007 +0000 +++ b/libpurple/dbus-analyze-functions.py Sun Oct 28 17:27:07 2007 +0000 @@ -75,7 +75,11 @@ ] pointer = "#pointer#" -myexception = "My Exception" + +class MyException(Exception): + pass + +myexception = MyException() def ctopascal(name): newname = "" @@ -520,7 +524,7 @@ try: self.processfunction(functiontext, paramtexts) - except myexception: + except MyException: sys.stderr.write(myline + "\n") except: sys.stderr.write(myline + "\n") diff -r acbbcf6b6b46 -r b3ae0eb23df3 libpurple/prpl.h --- a/libpurple/prpl.h Sun Oct 28 17:25:18 2007 +0000 +++ b/libpurple/prpl.h Sun Oct 28 17:27:07 2007 +0000 @@ -339,6 +339,15 @@ void (*remove_group)(PurpleConnection *gc, PurpleGroup *group); + /** Gets the real name of a participant in a chat. For example, on + * XMPP this turns a chat room nick foo into + * room@server/foo + * @param gc the connection on which the room is. + * @param id the ID of the chat room. + * @param who the nickname of the chat participant. + * @return the real name of the participant. This string must be + * freed by the caller. + */ char *(*get_cb_real_name)(PurpleConnection *gc, int id, const char *who); void (*set_chat_topic)(PurpleConnection *gc, int id, const char *topic);