Ignore:
Timestamp:
Aug 20, 2009, 2:46:38 AM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0b4aef2
Parents:
0b5168d
git-author:
Anders Kaseorg <andersk@mit.edu> (08/20/09 02:18:17)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/20/09 02:46:38)
Message:
IRC: Add quoting for reply commands and editwin prompt.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/IRC/lib/BarnOwl/Module/IRC.pm

    rab9cd8f r744769e  
    387387        process_msg($conn, $to, join(" ", @_));
    388388    } else {
    389         BarnOwl::start_edit_win("/msg -a " . $conn->alias . " $to", sub {process_msg($conn, $to, @_)});
     389        BarnOwl::start_edit_win(BarnOwl::quote('/msg', '-a', $conn->alias, $to), sub {process_msg($conn, $to, @_)});
    390390    }
    391391    return;
     
    414414        is_private($to) ?
    415415          (isprivate  => 'true') : (channel => $to),
    416         replycmd    => "irc-msg -a " . $conn->alias . " $to",
    417         replysendercmd => "irc-msg -a " . $conn->alias . " $to"
     416        replycmd    => BarnOwl::quote('irc-msg',  '-a', $conn->alias, $to),
     417        replysendercmd => BarnOwl::quote('irc-msg', '-a', $conn->alias, $to),
    418418       );
    419419    BarnOwl::queue_message($msg);
Note: See TracChangeset for help on using the changeset viewer.