Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/screen.c @ 1756:e2c084204583
Add (optional) suffix after nick completion in Multi-User Chats
New option: 'completion_muc_suffix'
Closes issue #20 in mcabber-crew BTS.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 13 Mar 2010 13:18:07 +0100 |
parents | 51a23403cc80 |
children | 61f0482d3993 |
line wrap: on
line diff
--- a/mcabber/mcabber/screen.c Sat Mar 13 11:57:32 2010 +0100 +++ b/mcabber/mcabber/screen.c Sat Mar 13 13:18:07 2010 +0100 @@ -3522,7 +3522,9 @@ guint n; char *prefix = g_strndup(row, ptr_inputline-row); // Init completion - n = new_completion(prefix, list); + n = new_completion(prefix, list, + (compl_categ == COMPL_RESOURCE ? + settings_opt_get("completion_muc_suffix") : NULL)); g_free(prefix); if (n == 0 && nrow == -1) { // This is a MUC room and we can't complete from the beginning of the @@ -3540,7 +3542,7 @@ // There's no need to try again if row == inputLine if (row > inputLine) { prefix = g_strndup(row, ptr_inputline-row); - new_completion(prefix, list); + new_completion(prefix, list, NULL); g_free(prefix); } }