mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed subscription from roster
This commit is contained in:
parent
f5013914ef
commit
d77c397b18
21
README
21
README
@ -9,3 +9,24 @@ To make:
|
||||
To run:
|
||||
|
||||
./profanity
|
||||
|
||||
WORKLIST:
|
||||
|
||||
Features:
|
||||
Show login attempts in console
|
||||
Show roster on login
|
||||
Add /msg command
|
||||
Handle resize terminal in X windows
|
||||
Secure XMPP
|
||||
Window buffers for scrolling, with page up and down
|
||||
Left right arrow keys whilst typing commands
|
||||
Up down arrow keys for command history
|
||||
|
||||
Bugs:
|
||||
Glitch with something flashing in status bar on login
|
||||
Correctly handling string lengths
|
||||
|
||||
One day:
|
||||
Other IM protocols
|
||||
Log chat history to file option
|
||||
Tab completion on commands
|
||||
|
10
jabber.c
10
jabber.c
@ -146,15 +146,13 @@ static int _roster_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanz
|
||||
item = xmpp_stanza_get_next(item)) {
|
||||
if ((name = xmpp_stanza_get_attribute(item, "name"))) {
|
||||
char line[200];
|
||||
sprintf(line, " %s (%s) sub=%s", name,
|
||||
xmpp_stanza_get_attribute(item, "jid"),
|
||||
xmpp_stanza_get_attribute(item, "subscription"));
|
||||
sprintf(line, " %s (%s)", name,
|
||||
xmpp_stanza_get_attribute(item, "jid"));
|
||||
cons_show(line);
|
||||
} else {
|
||||
char line[200];
|
||||
sprintf(line, " %s sub=%s",
|
||||
xmpp_stanza_get_attribute(item, "jid"),
|
||||
xmpp_stanza_get_attribute(item, "subscription"));
|
||||
sprintf(line, " %s",
|
||||
xmpp_stanza_get_attribute(item, "jid"));
|
||||
cons_show(line);
|
||||
}
|
||||
}
|
||||
|
@ -150,7 +150,8 @@ void cons_help(void)
|
||||
wprintw(wins[0].win, " [%s] /close : Close a chat window.\n", tstmp);
|
||||
wprintw(wins[0].win, " [%s] /quit : Quits Profanity.\n", tstmp);
|
||||
wprintw(wins[0].win, " [%s] Shortcuts:\n", tstmp);
|
||||
wprintw(wins[0].win, " [%s] F Keys : Chat windows.\n", tstmp);
|
||||
wprintw(wins[0].win, " [%s] F1 : Console window.\n", tstmp);
|
||||
wprintw(wins[0].win, " [%s] F2-10 : Chat windows.\n", tstmp);
|
||||
|
||||
// if its the current window, draw it
|
||||
if (curr_win == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user