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:
@@ -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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user