- def conversation_new(self, type, acc, char *name):
- self.__conv = conversation.c_purple_conversation_new(type, <account.PurpleAccount*>acc.__account, name)
+ if type == "UNKNOWN":
+ self.__conv =\
+ conversation.c_purple_conversation_new(conversation.PURPLE_CONV_TYPE_UNKNOWN,\
+ <account.PurpleAccount*>self.__acc.c_account, self.__name)
+ elif type == "IM":
+ self.__conv =\
+ conversation.c_purple_conversation_new(conversation.PURPLE_CONV_TYPE_IM,\
+ <account.PurpleAccount*>self.__acc.c_account, self.__name)
+ elif type == "CHAT":
+ self.__conv =\
+ conversation.c_purple_conversation_new(conversation.PURPLE_CONV_TYPE_CHAT,\
+ <account.PurpleAccount*>self.__acc.c_account, self.__name)
+ elif type == "MISC":
+ self.__conv =\
+ conversation.c_purple_conversation_new(conversation.PURPLE_CONV_TYPE_MISC,\
+ <account.PurpleAccount*>self.__acc.c_account, self.__name)
+ elif type == "ANY":
+ self.__conv =\
+ conversation.c_purple_conversation_new(conversation.PURPLE_CONV_TYPE_ANY,\
+ <account.PurpleAccount*>self.__acc.c_account, self.__name)