From 4eb130b3c5452f03de23ffbe36a671465204a699 Mon Sep 17 00:00:00 2001 From: Adrian Zgorzalek Date: Tue, 2 Aug 2011 09:20:39 -0400 Subject: [PATCH] Fix compilation error using python2.7 Fix compilation error in account.pyx. Signed-off-by: Adrian Zgorzalek --- account.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account.pyx b/account.pyx index a33df6c..81d6ab9 100644 --- a/account.pyx +++ b/account.pyx @@ -622,11 +622,12 @@ cdef class Account: 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(), - type, True, "message", msg, NULL) + type, True, msg_literal, msg, NULL) else: account.purple_account_set_status(self._get_structure(), type, True, NULL) -- 1.7.9.5