• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

keitaircメインレポジトリ


Commit MetaInfo

修订版3a70dfe5558214c1012eff23a3814ed0324c61fc (tree)
时间2010-11-30 22:41:57
作者ISHIKAWA Mutsumi <ishikawa@hanz...>
CommiterISHIKAWA Mutsumi

Log Message

syntax fix..

更改概述

差异

--- a/lib/Keitairc/IrcBuffer.pm
+++ b/lib/Keitairc/IrcBuffer.pm
@@ -362,6 +362,12 @@ sub remove_stream {
362362
363363 sub update_stream {
364364 my($me, $cid, $time, $message, $who) = @_;
365+
366+ return if !defined $me->{stream}->{$cid};
367+
368+ my $stream = $me->{stream}->{$cid};
369+ return if(keys %$stream < 1);
370+
365371 $message = $me->colorize($me->simple_escape($message));
366372 for my $name ($::pl->list_replace_plugins()) {
367373 last if $message =~ s/$::pl->{plugins}->{$name}->{message_replace_regexp}/$::pl->{plugins}->{$name}->{message_replace_imprementation}(undef, undef, $1, $2, $3, $4, $5, $6, $7, $8, $9)/eg;
@@ -369,7 +375,7 @@ sub update_stream {
369375 $message =~ s/\s+$//;
370376 $message =~ s/\s+/ /g;
371377
372- $enc_who = (defined $who && length($who) ? $me->simple_escape($who) ? '');
378+ my $enc_who = defined $who && length($who) ? $me->simple_escape($who) : '';
373379
374380 my $formatted = '<li class="messagenew"><span class="nick">' . $me->format_time($time) . ' ' . $enc_who . '</span>' . $message . '</li>';
375381