1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

Improved command /server ant its output, added plural form in PO files

This commit is contained in:
Sebastien Helleu
2007-07-18 16:35:12 +00:00
parent bd0b7957a3
commit 271bd21802
34 changed files with 4532 additions and 3618 deletions
+19
View File
@@ -2092,6 +2092,25 @@ irc_server_name_already_exists (char *name)
return 0;
}
/*
* irc_server_get_channel_count: return number of channels for server
*/
int
irc_server_get_channel_count (t_irc_server *server)
{
int count;
t_irc_channel *ptr_channel;
count = 0;
for (ptr_channel = server->channels; ptr_channel;
ptr_channel = ptr_channel->next_channel)
{
count++;
}
return count;
}
/*
* irc_server_remove_away: remove away for all chans/nicks (for all servers)
*/