about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-05 21:17:07 +0000
committerJames Booth <boothj5@gmail.com>2014-01-05 21:17:07 +0000
commitb14d5707cb4941489fa57236239ce08a18c81a7a (patch)
treee2696dcc505c666580d7e2a872b763679bccbf96 /src
parent460a42c7c979d1eaed3eeb7210ff1178e04417d8 (diff)
downloadprofani-tty-b14d5707cb4941489fa57236239ce08a18c81a7a.tar.gz
Moved handle_disco_info to server_events
Diffstat (limited to 'src')
-rw-r--r--src/profanity.c7
-rw-r--r--src/profanity.h2
-rw-r--r--src/server_events.c7
-rw-r--r--src/server_events.h1
-rw-r--r--src/xmpp/iq.c2
5 files changed, 9 insertions, 10 deletions
diff --git a/src/profanity.c b/src/profanity.c
index a532254d..e7a83b39 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -473,13 +473,6 @@ prof_handle_disco_items(GSList *items, const char *jid)
     ui_current_page_off();
 }
 
-void
-prof_handle_disco_info(const char *from, GSList *identities, GSList *features)
-{
-    cons_show_disco_info(from, identities, features);
-    ui_current_page_off();
-}
-
 /*
  * Take a line of input and process it, return TRUE if profanity is to
  * continue, FALSE otherwise
diff --git a/src/profanity.h b/src/profanity.h
index 8c5410b8..5351aa0e 100644
--- a/src/profanity.h
+++ b/src/profanity.h
@@ -69,8 +69,6 @@ void prof_handle_idle(void);
 void prof_handle_activity(void);
 void prof_handle_room_list(GSList *rooms, const char *conference_node);
 void prof_handle_disco_items(GSList *items, const char *jid);
-void prof_handle_disco_info(const char *from, GSList *identities,
-    GSList *features);
 void prof_handle_duck_help(const char * const result);
 void prof_handle_duck_result(const char * const result);
 void prof_handle_roster_add(const char * const barejid, const char * const name);
diff --git a/src/server_events.c b/src/server_events.c
index 565e4bcc..4e03d2d6 100644
--- a/src/server_events.c
+++ b/src/server_events.c
@@ -83,3 +83,10 @@ handle_software_version_result(const char * const jid, const char * const  prese
     cons_show_software_version(jid, presence, name, version, os);
     ui_current_page_off();
 }
+
+void
+handle_disco_info(const char *from, GSList *identities, GSList *features)
+{
+    cons_show_disco_info(from, identities, features);
+    ui_current_page_off();
+}
diff --git a/src/server_events.h b/src/server_events.h
index 9f5dfabc..13135281 100644
--- a/src/server_events.h
+++ b/src/server_events.h
@@ -29,5 +29,6 @@ void handle_lost_connection(void);
 void handle_failed_login(void);
 void handle_software_version_result(const char * const jid, const char * const  presence,
     const char * const name, const char * const version, const char * const os);
+void handle_disco_info(const char *from, GSList *identities, GSList *features);
 
 #endif
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index d3388cdd..8d42ede3 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -403,7 +403,7 @@ _iq_handle_discoinfo_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stan
                 child = xmpp_stanza_get_next(child);
             }
 
-            prof_handle_disco_info(from, identities, features);
+            handle_disco_info(from, identities, features);
             g_slist_free_full(features, free);
             g_slist_free_full(identities, (GDestroyNotify)_identity_destroy);
         }