comparison mcabber/modules/xttitle/xttitle.c @ 1832:48b265f8c5cb

[xttitle] Fix typos
author Mikael Berthe <mikael@lilotux.net>
date Sat, 27 Mar 2010 14:38:07 +0100
parents a2642e56e0de
children 8ad982f83fd6
comparison
equal deleted inserted replaced
1831:78616d66a7f2 1832:48b265f8c5cb
1 /* 1 /*
2 * Module "xttitle" -- Update X terminal tittle 2 * Module "xttitle" -- Update X terminal title
3 * 3 *
4 * Copyright (C) 2010 Mikael Berthe <mikael@lilotux.net> 4 * Copyright (C) 2010 Mikael Berthe <mikael@lilotux.net>
5 * 5 *
6 * This module is free software; you can redistribute it and/or modify 6 * This module is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 7 * it under the terms of the GNU General Public License as published by
64 64
65 // Let's not count the MUC unread buffers that don't have the attention 65 // Let's not count the MUC unread buffers that don't have the attention
66 // flag (that is, MUC buffer that have no highlighted messages). 66 // flag (that is, MUC buffer that have no highlighted messages).
67 unread = all_unread - (muc_unread - muc_attention); 67 unread = all_unread - (muc_unread - muc_attention);
68 68
69 // Update the terminal tittle 69 // Update the terminal title
70 if (muc_unread) { 70 if (muc_unread) {
71 printf("\033]0;MCabber -- %d message%c (total:%d / MUC:%d)\007", 71 printf("\033]0;MCabber -- %d message%c (total:%d / MUC:%d)\007",
72 unread, (unread > 1 ? 's' : ' '), all_unread, muc_unread); 72 unread, (unread > 1 ? 's' : ' '), all_unread, muc_unread);
73 } else { 73 } else {
74 if (unread) 74 if (unread)