Fix compilation error in account.pyx.
Signed-off-by: Adrian Zgorzalek <a.zgorzalek@gmail.com>
def set_active_status(self, type, msg=None):
cdef status.PurpleStatusType *c_statustype = NULL
cdef savedstatuses.PurpleSavedStatus *c_savedstatus = NULL
def set_active_status(self, type, msg=None):
cdef status.PurpleStatusType *c_statustype = NULL
cdef savedstatuses.PurpleSavedStatus *c_savedstatus = NULL
+ cdef char* msg_literal = "message"
if self.__exists:
if msg:
account.purple_account_set_status(self._get_structure(),
if self.__exists:
if msg:
account.purple_account_set_status(self._get_structure(),
- <char *> type, True, "message", <char *> msg, NULL)
+ <char *> type, True, msg_literal, <char *> msg, NULL)
else:
account.purple_account_set_status(self._get_structure(),
<char *> type, True, NULL)
else:
account.purple_account_set_status(self._get_structure(),
<char *> type, True, NULL)