- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
r9c7a701 r919535f 199 199 process_msg($conn, $to, join(" ", @_)); 200 200 } else { 201 BarnOwl::start_edit_win("/msg $to -a " . $conn->alias, sub {process_msg($conn, $to, @_)});201 BarnOwl::start_edit_win("/msg -a " . $conn->alias . " $to", sub {process_msg($conn, $to, @_)}); 202 202 } 203 203 } … … 209 209 # Strip whitespace. In the future -- send one message/line? 210 210 $body =~ tr/\n\r/ /; 211 $conn->conn->privmsg($to, $body); 211 if ($body =~ /^\/me (.*)/) { 212 $conn->conn->me($to, $1); 213 $body = BarnOwl::Style::boldify($conn->nick.' '.$1); 214 } else { 215 $conn->conn->privmsg($to, $body); 216 } 212 217 my $msg = BarnOwl::Message->new( 213 218 type => 'IRC', … … 220 225 is_private($to) ? 221 226 (isprivate => 'true') : (channel => $to), 222 replycmd => "irc-msg $to",223 replysendercmd => "irc-msg $to"227 replycmd => "irc-msg -a " . $conn->alias . " $to", 228 replysendercmd => "irc-msg -a " . $conn->alias . " $to" 224 229 ); 225 230 BarnOwl::queue_message($msg);
Note: See TracChangeset
for help on using the changeset viewer.