Skip to content

Commit 0f8e351

Browse files
committed
6.98: not sure why but topic information was sent awkwardly between names list and RPL_ENDOF_NAMES.
1 parent 8e58c8c commit 0f8e351

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

INDEV

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,4 +1921,6 @@ CHANGES:
19211921
97. fixed broken CONNECT command.
19221922
added ->do_mode_string_local() which is the same as ->do_mode_string() except it doesn't tell other servers about the change.
19231923

1924+
98. not sure why but topic information was sent awkwardly between names list and RPL_ENDOF_NAMES.
1925+
19241926

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.97
1+
6.98

lib/channel/mine.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ sub localjoin {
2929
$usr->sendfrom($user->full, "JOIN $$channel{name}")
3030
}
3131

32-
names($channel, $user);
3332
$user->handle("TOPIC $$channel{name}") if $channel->{topic};
34-
$user->numeric('RPL_ENDOFNAMES', $channel->{name});
33+
names($channel, $user);
3534

3635
# fire after join event.
3736
$channel->fire_event(user_joined => $user);
@@ -56,7 +55,8 @@ sub names {
5655
$str[$curr] .= prefix($channel, $usr).$usr->{nick}.q( );
5756
$curr++ if length $str[$curr] > 500
5857
}
59-
$user->numeric('RPL_NAMEREPLY', '=', $channel->{name}, $_) foreach @str
58+
$user->numeric('RPL_NAMEREPLY', '=', $channel->{name}, $_) foreach @str;
59+
$user->numeric('RPL_ENDOFNAMES', $channel->{name});
6060
}
6161

6262
sub modes {

0 commit comments

Comments
 (0)