# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-cimport purple
-
cdef extern from *:
ctypedef char const_char "const char"
ctypedef glib.guchar const_guchar "const guchar"
message = None
# FIXME: Maybe we need add more purple flags in the future
- if flags & conversation.PURPLE_MESSAGE_SEND:
+ if (<int>flags & conversation.PURPLE_MESSAGE_SEND):
flag = "SEND"
else:
flag = "RECV"