mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 09:16:22 +00:00
Naming of statics
This commit is contained in:
8
jabber.c
8
jabber.c
@@ -101,7 +101,7 @@ static int _jabber_message_handler(xmpp_conn_t * const conn,
|
||||
message = xmpp_stanza_get_text(xmpp_stanza_get_child_by_name(stanza, "body"));
|
||||
|
||||
char *from = xmpp_stanza_get_attribute(stanza, "from");
|
||||
show_incomming_msg(from, message);
|
||||
win_show_incomming_msg(from, message);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -141,19 +141,19 @@ static int _roster_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanz
|
||||
log_msg(CONN, "ERROR: query failed");
|
||||
else {
|
||||
query = xmpp_stanza_get_child_by_name(stanza, "query");
|
||||
cons_show("Roster:");
|
||||
win_cons_show("Roster:");
|
||||
for (item = xmpp_stanza_get_children(query); item;
|
||||
item = xmpp_stanza_get_next(item)) {
|
||||
if ((name = xmpp_stanza_get_attribute(item, "name"))) {
|
||||
char line[200];
|
||||
sprintf(line, " %s (%s)", name,
|
||||
xmpp_stanza_get_attribute(item, "jid"));
|
||||
cons_show(line);
|
||||
win_cons_show(line);
|
||||
} else {
|
||||
char line[200];
|
||||
sprintf(line, " %s",
|
||||
xmpp_stanza_get_attribute(item, "jid"));
|
||||
cons_show(line);
|
||||
win_cons_show(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user