1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Removed /ros command

This commit is contained in:
James Booth 2012-10-04 22:09:33 +01:00
parent 65022b3c2f
commit dcf5e9ef16
2 changed files with 1 additions and 33 deletions

View File

@ -63,7 +63,6 @@ static gboolean _cmd_quit(const char * const inp, struct cmd_help_t help);
static gboolean _cmd_help(const char * const inp, struct cmd_help_t help); static gboolean _cmd_help(const char * const inp, struct cmd_help_t help);
static gboolean _cmd_prefs(const char * const inp, struct cmd_help_t help); static gboolean _cmd_prefs(const char * const inp, struct cmd_help_t help);
static gboolean _cmd_who(const char * const inp, struct cmd_help_t help); static gboolean _cmd_who(const char * const inp, struct cmd_help_t help);
static gboolean _cmd_ros(const char * const inp, struct cmd_help_t help);
static gboolean _cmd_connect(const char * const inp, struct cmd_help_t help); static gboolean _cmd_connect(const char * const inp, struct cmd_help_t help);
static gboolean _cmd_msg(const char * const inp, struct cmd_help_t help); static gboolean _cmd_msg(const char * const inp, struct cmd_help_t help);
static gboolean _cmd_tiny(const char * const inp, struct cmd_help_t help); static gboolean _cmd_tiny(const char * const inp, struct cmd_help_t help);
@ -153,15 +152,6 @@ static struct cmd_t main_commands[] =
"Example : /tiny http://www.google.com", "Example : /tiny http://www.google.com",
NULL } } }, NULL } } },
{ "/ros",
_cmd_ros,
{ "/ros", "List all contacts.",
{ "/ros",
"----",
"List all contact currently on the chat hosts roster.",
"See /who for a more useful list of contacts who are currently online.",
NULL } } },
{ "/who", { "/who",
_cmd_who, _cmd_who,
{ "/who", "Find out who is online.", { "/who", "Find out who is online.",
@ -560,19 +550,6 @@ _cmd_prefs(const char * const inp, struct cmd_help_t help)
return TRUE; return TRUE;
} }
static gboolean
_cmd_ros(const char * const inp, struct cmd_help_t help)
{
jabber_conn_status_t conn_status = jabber_get_connection_status();
if (conn_status != JABBER_CONNECTED)
cons_show("You are not currently connected.");
else
jabber_roster_request();
return TRUE;
}
static gboolean static gboolean
_cmd_who(const char * const inp, struct cmd_help_t help) _cmd_who(const char * const inp, struct cmd_help_t help)
{ {

View File

@ -167,15 +167,8 @@ prof_handle_contact_offline(char *contact, char *show, char *status)
void void
prof_handle_roster(GSList *roster) prof_handle_roster(GSList *roster)
{ {
cons_show("Roster:");
while (roster != NULL) { while (roster != NULL) {
jabber_roster_entry *entry = roster->data; jabber_roster_entry *entry = roster->data;
if (entry->name != NULL) {
cons_show("%s (%s)", entry->name, entry->jid);
} else {
cons_show("%s", entry->jid);
}
// if contact not in contact list add them as offline // if contact not in contact list add them as offline
if (find_contact(entry->jid) == NULL) { if (find_contact(entry->jid) == NULL) {
@ -183,8 +176,6 @@ prof_handle_roster(GSList *roster)
} }
roster = g_slist_next(roster); roster = g_slist_next(roster);
win_page_off();
} }
g_slist_free_full(roster, (GDestroyNotify)_free_roster_entry); g_slist_free_full(roster, (GDestroyNotify)_free_roster_entry);