about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-05 21:33:12 +0000
committerJames Booth <boothj5@gmail.com>2014-01-05 21:33:12 +0000
commita54518f2d421f212bef3e43919e4b369afb89dd5 (patch)
tree93b02fddf3d5e09b603e1bac52979c1a7faf164b /src/profanity.c
parentd083a5407d7eb002e1cd046538a0150393a87b84 (diff)
downloadprofani-tty-a54518f2d421f212bef3e43919e4b369afb89dd5.tar.gz
Moved messages handlers to server_events
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c104
1 files changed, 0 insertions, 104 deletions
diff --git a/src/profanity.c b/src/profanity.c
index cf3ca674..d8a16fd1 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -118,53 +118,6 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
 }
 
 void
-prof_handle_typing(char *from)
-{
-    ui_contact_typing(from);
-    ui_current_page_off();
-}
-
-void
-prof_handle_incoming_message(char *from, char *message, gboolean priv)
-{
-    ui_incoming_msg(from, message, NULL, priv);
-    ui_current_page_off();
-
-    if (prefs_get_boolean(PREF_CHLOG) && !priv) {
-        Jid *from_jid = jid_create(from);
-        const char *jid = jabber_get_fulljid();
-        Jid *jidp = jid_create(jid);
-        chat_log_chat(jidp->barejid, from_jid->barejid, message, PROF_IN_LOG, NULL);
-        jid_destroy(jidp);
-        jid_destroy(from_jid);
-    }
-}
-
-void
-prof_handle_delayed_message(char *from, char *message, GTimeVal tv_stamp,
-    gboolean priv)
-{
-    ui_incoming_msg(from, message, &tv_stamp, priv);
-    ui_current_page_off();
-
-    if (prefs_get_boolean(PREF_CHLOG) && !priv) {
-        Jid *from_jid = jid_create(from);
-        const char *jid = jabber_get_fulljid();
-        Jid *jidp = jid_create(jid);
-        chat_log_chat(jidp->barejid, from_jid->barejid, message, PROF_IN_LOG, &tv_stamp);
-        jid_destroy(jidp);
-        jid_destroy(from_jid);
-    }
-}
-
-void
-prof_handle_duck_result(const char * const result)
-{
-    ui_duck_result(result);
-    ui_current_page_off();
-}
-
-void
 prof_handle_already_in_group(const char * const contact,
     const char * const group)
 {
@@ -243,13 +196,6 @@ prof_handle_roster_remove(const char * const barejid)
 }
 
 void
-prof_handle_gone(const char * const from)
-{
-    ui_recipient_gone(from);
-    ui_current_page_off();
-}
-
-void
 prof_handle_disconnect(const char * const jid)
 {
     cons_show("%s logged out successfully.", jid);
@@ -262,43 +208,6 @@ prof_handle_disconnect(const char * const jid)
 }
 
 void
-prof_handle_room_history(const char * const room_jid, const char * const nick,
-    GTimeVal tv_stamp, const char * const message)
-{
-    ui_room_history(room_jid, nick, tv_stamp, message);
-    ui_current_page_off();
-}
-
-void
-prof_handle_room_message(const char * const room_jid, const char * const nick,
-    const char * const message)
-{
-    ui_room_message(room_jid, nick, message);
-    ui_current_page_off();
-
-    if (prefs_get_boolean(PREF_GRLOG)) {
-        Jid *jid = jid_create(jabber_get_fulljid());
-        groupchat_log_chat(jid->barejid, room_jid, nick, message);
-        jid_destroy(jid);
-    }
-}
-
-void
-prof_handle_room_subject(const char * const room_jid, const char * const subject)
-{
-    ui_room_subject(room_jid, subject);
-    ui_current_page_off();
-}
-
-void
-prof_handle_room_broadcast(const char *const room_jid,
-    const char * const message)
-{
-    ui_room_broadcast(room_jid, message);
-    ui_current_page_off();
-}
-
-void
 prof_handle_room_roster_complete(const char * const room)
 {
     muc_set_roster_received(room);
@@ -345,19 +254,6 @@ prof_handle_leave_room(const char * const room)
     muc_leave_room(room);
 }
 
-void prof_handle_room_invite(jabber_invite_t invite_type,
-    const char * const invitor, const char * const room,
-    const char * const reason)
-{
-    Jid *room_jid = jid_create(room);
-    if (!muc_room_is_active(room_jid) && !muc_invites_include(room)) {
-        cons_show_room_invite(invitor, room, reason);
-        muc_add_invite(room);
-        ui_current_page_off();
-    }
-    jid_destroy(room_jid);
-}
-
 void
 prof_handle_contact_online(char *contact, Resource *resource,
     GDateTime *last_activity)