Changeset db0ac7e for perl/modules
- Timestamp:
- May 3, 2008, 12:52:32 PM (15 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- feabce2
- Parents:
- d9337637 (diff), 811ad93 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- perl/modules
- Files:
-
- 9 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); -
perl/modules/IRC/lib/BarnOwl/Module/IRC/Connection.pm
r661d2eb r8faab0c 108 108 is_private($recipient) ? 109 109 (isprivate => 'true') : (channel => $recipient), 110 replycmd => 'irc-msg ' .110 replycmd => 'irc-msg -a ' . $self->alias . ' ' . 111 111 (is_private($recipient) ? $evt->nick : $recipient), 112 replysendercmd => 'irc-msg ' . $evt->nick112 replysendercmd => 'irc-msg -a ' . $self->alias . ' ' . $evt->nick 113 113 ); 114 114 … … 158 158 loginout => 'login', 159 159 channel => $evt->to, 160 replycmd => 'irc-msg -a ' . $self->alias . ' ' . $evt->nick, 161 replysendercmd => 'irc-msg -a ' . $self->alias . ' ' . $evt->nick 160 162 ); 161 163 BarnOwl::queue_message($msg); … … 167 169 loginout => 'logout', 168 170 channel => $evt->to, 171 replycmd => 'irc-msg -a ' . $self->alias . ' ' . $evt->nick, 172 replysendercmd => 'irc-msg -a ' . $self->alias . ' ' . $evt->nick 169 173 ); 170 174 BarnOwl::queue_message($msg); -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
r5f3168a rdb0ac7e 25 25 use Net::DNS; 26 26 use Getopt::Long; 27 Getopt::Long::Configure(qw(no_getopt_compat prefix_pattern=-|--)); 27 28 28 29 use utf8; … … 479 480 'account=s' => \$from, 480 481 'id=s' => \$jwrite_sid, 481 ) ;482 ) or die("Usage: jwrite JID [-t thread] [-s 'subject'] [-a account]\n"); 482 483 $jwrite_type = 'groupchat' if $gc; 483 484 … … 570 571 571 572 my $getopt = Getopt::Long::Parser->new; 572 $getopt->configure('pass_through' );573 $getopt->configure('pass_through', 'no_getopt_compat'); 573 574 $getopt->getoptions( 'account=s' => \$jid ); 574 575 $jid ||= defaultJID(); … … 734 735 my $purgeGroups; 735 736 my $getopt = Getopt::Long::Parser->new; 736 $getopt->configure('pass_through' );737 $getopt->configure('pass_through', 'no_getopt_compat'); 737 738 $getopt->getoptions( 738 739 'account=s' => \$jid, -
perl/modules/Jabber/lib/Net/Jabber/Data.pm
rc2bed55 rcdd3959 120 120 to go into full detail on each of these functions. Rather I will 121 121 present the functions in a list with a type in the first column to 122 show what they return, or take as ar ugments. Here is the list of122 show what they return, or take as arguments. Here is the list of 123 123 types I will use: 124 124 -
perl/modules/Jabber/lib/Net/Jabber/Protocol.pm
rc2bed55 rcdd3959 940 940 if (!exists($funcHash{set}) && exists($funcHash{get})) 941 941 { 942 croak("The DefineNamespace ar ugments have changed, and I cannot determine the\nnew values automatically for name($name). Please read the man page\nfor Net::Jabber::Namespaces. I apologize for this incompatability.\n");942 croak("The DefineNamespace arguments have changed, and I cannot determine the\nnew values automatically for name($name). Please read the man page\nfor Net::Jabber::Namespaces. I apologize for this incompatability.\n"); 943 943 } 944 944 -
perl/modules/Jabber/lib/BarnOwl/Module/Jabber/Connection.pm
r6b580b0 r5f3168a 1 1 use warnings; 2 2 use strict; 3 use utf8; 3 4 4 5 =head1 NAME -
perl/modules/Jabber/lib/Net/XMPP/Debug.pm
rc2bed55 rb7b2a76 189 189 { 190 190 $self->{HANDLE}->autoflush(1); 191 binmode $self->{HANDLE}, ":utf8"; 191 192 $Net::XMPP::Debug::HANDLES{$args{file}} = $self->{HANDLE}; 192 193 } -
perl/modules/Jabber/lib/Net/XMPP/Message.pm
rc2bed55 r8574801 135 135 $Mess->SetMessage(TO=>"bob\@jabber.org", 136 136 Subject=>"Lunch", 137 Bo Dy=>"Let's do lunch!");137 Body=>"Let's do lunch!"); 138 138 $Mess->SetMessage(to=>"bob\@jabber.org", 139 139 from=>"jabber.org", -
perl/modules/Jabber/lib/XML/Stream.pm
r5073972 ra8d5a39 1659 1659 { 1660 1660 $self->debug(3,"Send: can_write"); 1661 1661 1662 1662 $self->{SENDSTRING} = Encode::encode_utf8(join("",@_)); 1663 1663
Note: See TracChangeset
for help on using the changeset viewer.