mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
Fixed "%C" completion: now completes with all channels of all servers
This commit is contained in:
@@ -6,6 +6,7 @@ ChangeLog - 2007-05-22
|
||||
|
||||
Version 0.2.5 (under dev!):
|
||||
* removed ":" for unknown IRC commands before arguments (bug #19929)
|
||||
* fixed "%C" completion: now completes with all channels of all servers
|
||||
* fixed bug with "/buffer query_name", added server and channel completion
|
||||
for /buffer command (bug #19928)
|
||||
* added cmake for weechat compile (patch #5943)
|
||||
|
||||
@@ -2278,7 +2278,8 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%C</literal></entry>
|
||||
<entry>Channels des gegenwärtigen Servers</entry>
|
||||
<!-- TRANSLATION NEEDED -->
|
||||
<entry>all channels (including queries)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%f</literal></entry>
|
||||
|
||||
@@ -2294,7 +2294,7 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%C</literal></entry>
|
||||
<entry>channels of current server</entry>
|
||||
<entry>all channels (including queries)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%f</literal></entry>
|
||||
|
||||
@@ -2351,7 +2351,7 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%C</literal></entry>
|
||||
<entry>canaux du serveur courant</entry>
|
||||
<entry>tous les canaux (y compris les privés)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%f</literal></entry>
|
||||
|
||||
+13
-8
@@ -340,21 +340,26 @@ completion_list_add_channel (t_completion *completion)
|
||||
}
|
||||
|
||||
/*
|
||||
* completion_list_add_server_channels: add server channels to completion list
|
||||
* completion_list_add_channels: add server channels to completion list
|
||||
*/
|
||||
|
||||
void
|
||||
completion_list_add_server_channels (t_completion *completion)
|
||||
completion_list_add_channels (t_completion *completion)
|
||||
{
|
||||
t_irc_server *ptr_server;
|
||||
t_irc_channel *ptr_channel;
|
||||
|
||||
if (completion->server)
|
||||
{
|
||||
for (ptr_channel = ((t_irc_server *)(completion->server))->channels;
|
||||
ptr_channel; ptr_channel = ptr_channel->next_channel)
|
||||
for (ptr_server = irc_servers; ptr_server;
|
||||
ptr_server = ptr_server->next_server)
|
||||
{
|
||||
completion_list_add (completion, ptr_channel->name,
|
||||
0, WEELIST_POS_SORT);
|
||||
for (ptr_channel = ptr_server->channels;
|
||||
ptr_channel; ptr_channel = ptr_channel->next_channel)
|
||||
{
|
||||
completion_list_add (completion, ptr_channel->name,
|
||||
0, WEELIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -969,7 +974,7 @@ completion_build_list_template (t_completion *completion, char *template)
|
||||
completion_list_add_channel (completion);
|
||||
break;
|
||||
case 'C': /* all channels */
|
||||
completion_list_add_server_channels (completion);
|
||||
completion_list_add_channels (completion);
|
||||
break;
|
||||
case 'f': /* filename */
|
||||
completion_list_add_filename (completion);
|
||||
@@ -1521,7 +1526,7 @@ completion_auto (t_completion *completion)
|
||||
if (irc_channel_is_channel (completion->base_word))
|
||||
{
|
||||
if (!completion->completion_list)
|
||||
completion_list_add_server_channels (completion);
|
||||
completion_list_add_channels (completion);
|
||||
completion_command_arg (completion, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ ChangeLog - 2007-05-22
|
||||
|
||||
Version 0.2.5 (under dev!):
|
||||
* removed ":" for unknown IRC commands before arguments (bug #19929)
|
||||
* fixed "%C" completion: now completes with all channels of all servers
|
||||
* fixed bug with "/buffer query_name", added server and channel completion
|
||||
for /buffer command (bug #19928)
|
||||
* added cmake for weechat compile (patch #5943)
|
||||
|
||||
@@ -2278,7 +2278,8 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%C</literal></entry>
|
||||
<entry>Channels des gegenwärtigen Servers</entry>
|
||||
<!-- TRANSLATION NEEDED -->
|
||||
<entry>all channels (including queries)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%f</literal></entry>
|
||||
|
||||
@@ -2294,7 +2294,7 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%C</literal></entry>
|
||||
<entry>channels of current server</entry>
|
||||
<entry>all channels (including queries)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%f</literal></entry>
|
||||
|
||||
@@ -2351,7 +2351,7 @@ msg_handler = plugin->msg_handler_add (plugin, "KICK",
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%C</literal></entry>
|
||||
<entry>canaux du serveur courant</entry>
|
||||
<entry>tous les canaux (y compris les privés)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>%f</literal></entry>
|
||||
|
||||
@@ -340,21 +340,26 @@ completion_list_add_channel (t_completion *completion)
|
||||
}
|
||||
|
||||
/*
|
||||
* completion_list_add_server_channels: add server channels to completion list
|
||||
* completion_list_add_channels: add server channels to completion list
|
||||
*/
|
||||
|
||||
void
|
||||
completion_list_add_server_channels (t_completion *completion)
|
||||
completion_list_add_channels (t_completion *completion)
|
||||
{
|
||||
t_irc_server *ptr_server;
|
||||
t_irc_channel *ptr_channel;
|
||||
|
||||
if (completion->server)
|
||||
{
|
||||
for (ptr_channel = ((t_irc_server *)(completion->server))->channels;
|
||||
ptr_channel; ptr_channel = ptr_channel->next_channel)
|
||||
for (ptr_server = irc_servers; ptr_server;
|
||||
ptr_server = ptr_server->next_server)
|
||||
{
|
||||
completion_list_add (completion, ptr_channel->name,
|
||||
0, WEELIST_POS_SORT);
|
||||
for (ptr_channel = ptr_server->channels;
|
||||
ptr_channel; ptr_channel = ptr_channel->next_channel)
|
||||
{
|
||||
completion_list_add (completion, ptr_channel->name,
|
||||
0, WEELIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -969,7 +974,7 @@ completion_build_list_template (t_completion *completion, char *template)
|
||||
completion_list_add_channel (completion);
|
||||
break;
|
||||
case 'C': /* all channels */
|
||||
completion_list_add_server_channels (completion);
|
||||
completion_list_add_channels (completion);
|
||||
break;
|
||||
case 'f': /* filename */
|
||||
completion_list_add_filename (completion);
|
||||
@@ -1521,7 +1526,7 @@ completion_auto (t_completion *completion)
|
||||
if (irc_channel_is_channel (completion->base_word))
|
||||
{
|
||||
if (!completion->completion_list)
|
||||
completion_list_add_server_channels (completion);
|
||||
completion_list_add_channels (completion);
|
||||
completion_command_arg (completion, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user