diff options
| author | fukachan <fukachan> | 2002-03-17 04:20:03 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-03-17 04:20:03 +0000 |
| commit | 14bd6d47111916fdffd3b4508c75ea25a3253639 (patch) | |
| tree | 2561ae8926cf5fc8e8d3b83c8f1ee8d924503d85 /fml | |
| parent | 20b534eafb2af675eb5e70958e4feea73073a590 (diff) | |
| download | fml8-14bd6d47111916fdffd3b4508c75ea25a3253639.tar.gz fml8-14bd6d47111916fdffd3b4508c75ea25a3253639.tar.bz2 fml8-14bd6d47111916fdffd3b4508c75ea25a3253639.zip | |
reply_message: append \n to message if \n$ is missing
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/lib/FML/Process/Kernel.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm index b61d6fbb..5136864b 100644 --- a/fml/lib/FML/Process/Kernel.pm +++ b/fml/lib/FML/Process/Kernel.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Kernel.pm,v 1.78 2002/03/16 14:24:58 fukachan Exp $ +# $FML: Kernel.pm,v 1.79 2002/03/17 02:44:09 fukachan Exp $ # package FML::Process::Kernel; @@ -557,6 +557,12 @@ sub reply_message } } + # check text messages and fix if needed. + unless (ref($msg)) { + # \n in the last always. + $msg .= "\n" unless $msg =~ /\n$/; + } + $curproc->_append_message_into_queue($msg, $args, $recipient); } |
