Changeset dd16bdd for perlwrap.pm
- Timestamp:
- Oct 27, 2006, 1:19:54 AM (18 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 1b6b2f3
- Parents:
- 39c036d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perlwrap.pm
r6922edd rdd16bdd 62 62 package owl::Message; 63 63 64 sub new { 65 my $class = shift; 66 my %args = (@_); 67 if($class eq __PACKAGE__ && $args{type}) { 68 $class = "owl::Message::" . ucfirst $args{type}; 69 } 70 return bless {%args}, $class; 71 } 72 64 73 sub type { return shift->{"type"}; } 65 74 sub direction { return shift->{"direction"}; } … … 84 93 sub is_admin { return (shift->{"type"} eq "admin"); } 85 94 sub is_generic { return (shift->{"type"} eq "generic"); } 95 sub is_jabber { return (shift->{"type"} eq "jabber"); } 86 96 87 97 # These are overridden by appropriate message types … … 251 261 ##################################################################### 252 262 263 package owl::Message::Jabber; 264 265 @ISA = qw( owl::Message ); 266 267 ##################################################################### 268 ##################################################################### 269 253 270 # switch to package main when we're done 254 271 package main;
Note: See TracChangeset
for help on using the changeset viewer.