- Timestamp:
- Jan 8, 2007, 11:19:16 PM (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:
- ffd3f69
- Parents:
- d89b57f
- git-author:
- Nelson Elhage <nelhage@mit.edu> (01/08/07 23:19:14)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (01/08/07 23:19:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/jabber.pl
r46e8a1e r0d5d51b 1164 1164 sub from { shift->{from} }; 1165 1165 sub to { shift->{to} }; 1166 sub room { shift->{room} }; 1166 1167 1167 1168 sub smartfilter { … … 1169 1170 my $inst = shift; 1170 1171 1172 my ($filter, $ftext); 1173 1171 1174 if($self->jtype eq 'chat') { 1172 my ($user, $filter, $ftext);1175 my $user; 1173 1176 if($self->direction eq 'in') { 1174 1177 $user = $self->from; … … 1182 1185 owl::filter("$filter $ftext"); 1183 1186 return $filter; 1187 } elsif ($self->jtype eq 'groupchat') { 1188 my $room = $self->room; 1189 $filter = "jabber-room-$room"; 1190 $ftext = qq{type ^jabber\$ and room ^$room\$}; 1191 owl::filter("$filter $ftext"); 1192 return $filter; 1184 1193 } 1185 1194 }
Note: See TracChangeset
for help on using the changeset viewer.