mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
/NOTIFY, /NOTIFY -list: Added "The notify list is empty" message
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1669 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2a44f98a51
commit
bdde1d884c
3 changed files with 13 additions and 3 deletions
|
|
@ -89,8 +89,11 @@ static void cmd_notify_show(void)
|
|||
GSList *nicks, *offline, *tmp;
|
||||
IRC_SERVER_REC *server;
|
||||
|
||||
if (notifies == NULL)
|
||||
if (notifies == NULL) {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
|
||||
IRCTXT_NOTIFY_LIST_EMPTY);
|
||||
return;
|
||||
}
|
||||
|
||||
/* build a list containing only the nicks */
|
||||
nicks = NULL;
|
||||
|
|
@ -164,7 +167,12 @@ static void notifylist_print(NOTIFYLIST_REC *rec)
|
|||
|
||||
static void cmd_notifylist_show(void)
|
||||
{
|
||||
g_slist_foreach(notifies, (GFunc) notifylist_print, NULL);
|
||||
if (notifies == NULL) {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
|
||||
IRCTXT_NOTIFY_LIST_EMPTY);
|
||||
} else {
|
||||
g_slist_foreach(notifies, (GFunc) notifylist_print, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
static void cmd_notify(const char *data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue