diff options
Diffstat (limited to 'event.h')
-rw-r--r-- | event.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7,6 +7,7 @@ enum event_type{ EVENT_MESSAGE, // message, user, room EVENT_ONLINE, // user, num EVENT_JOIN, // user, room + EVENT_LEAVE, // user, room }; struct event_item{ @@ -30,3 +31,4 @@ void event_emit(const struct event_item *event); void event_emit_message(i64 timestamp,const char *message,const char *user,const char *room,i64 replyid); void event_emit_online(i64 timestamp,const char *user,i64 numonline); void event_emit_join(i64 timestamp,const char *user,const char *room); +void event_emit_leave(i64 timestamp,const char *user,const char *room); |