mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-25 10:42:18 -05:00
update xchat to r1501
This commit is contained in:
parent
bca7e6c554
commit
605c3dea36
@ -14,6 +14,8 @@ highlights. The full CVS log is available at www.xchat.org/cvslog/
|
|||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
2.8.10 - dd/mm/yyyy
|
2.8.10 - dd/mm/yyyy
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
- Emit the Topic Change event before setting the topic internally so plugins
|
||||||
|
can access the old topic inside the callback.
|
||||||
- Perl (Lian Wan Situ)
|
- Perl (Lian Wan Situ)
|
||||||
* Added two new options to hook_print, run_after_event and filter. See
|
* Added two new options to hook_print, run_after_event and filter. See
|
||||||
documentation for details.
|
documentation for details.
|
||||||
|
@ -30,8 +30,11 @@ my $ignore_leading_non_alnum = 0;
|
|||||||
my $path_completion = 1;
|
my $path_completion = 1;
|
||||||
my $base_path = '';
|
my $base_path = '';
|
||||||
|
|
||||||
|
# ignore the completion_amount setting and always cycle through nicks with tab
|
||||||
|
my $always_cycle = 0;
|
||||||
|
|
||||||
Xchat::register(
|
Xchat::register(
|
||||||
"Tab Completion", "1.0401", "Alternative tab completion behavior"
|
"Tab Completion", "1.0500", "Alternative tab completion behavior"
|
||||||
);
|
);
|
||||||
Xchat::hook_print( "Key Press", \&complete );
|
Xchat::hook_print( "Key Press", \&complete );
|
||||||
Xchat::hook_print( "Close Context", \&close_context );
|
Xchat::hook_print( "Close Context", \&close_context );
|
||||||
@ -203,8 +206,9 @@ sub complete {
|
|||||||
# don't cycle if the number of possible completions is greater than
|
# don't cycle if the number of possible completions is greater than
|
||||||
# completion_amount
|
# completion_amount
|
||||||
if(
|
if(
|
||||||
|
!$always_cycle && (
|
||||||
@{$completions->{matches}} > $completion_amount
|
@{$completions->{matches}} > $completion_amount
|
||||||
&& @{$completions->{matches}} != 1
|
&& @{$completions->{matches}} != 1 )
|
||||||
) {
|
) {
|
||||||
# don't print if we tabbed in the beginning and the list of possible
|
# don't print if we tabbed in the beginning and the list of possible
|
||||||
# completions includes all nicks in the channel
|
# completions includes all nicks in the channel
|
||||||
|
@ -683,10 +683,10 @@ inbound_topicnew (server *serv, char *nick, char *chan, char *topic)
|
|||||||
sess = find_channel (serv, chan);
|
sess = find_channel (serv, chan);
|
||||||
if (sess)
|
if (sess)
|
||||||
{
|
{
|
||||||
|
EMIT_SIGNAL (XP_TE_NEWTOPIC, sess, nick, topic, chan, NULL, 0);
|
||||||
stripped_topic = strip_color (topic, -1, STRIP_ALL);
|
stripped_topic = strip_color (topic, -1, STRIP_ALL);
|
||||||
set_topic (sess, topic, stripped_topic);
|
set_topic (sess, topic, stripped_topic);
|
||||||
g_free (stripped_topic);
|
g_free (stripped_topic);
|
||||||
EMIT_SIGNAL (XP_TE_NEWTOPIC, sess, nick, topic, chan, NULL, 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user