Changeset d5dcd7c for perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
- Timestamp:
- Aug 21, 2008, 6:20:01 PM (16 years ago)
- Branches:
- master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 5b75e8b
- Parents:
- 57cf4f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm
r7a45a72 rd5dcd7c 1047 1047 $props{loginout} = 'logout'; 1048 1048 } 1049 $props{replysendercmd} = $props{replycmd} = "jwrite $from -a $to";1050 1049 BarnOwl::queue_message(BarnOwl::Message->new(%props)); 1051 1050 } … … 1154 1153 1155 1154 if ( $jtype eq 'chat' ) { 1156 $props{replycmd} =1157 "jwrite " . ( ( $dir eq 'in' ) ? $props{from} : $props{to} );1158 $props{replycmd} .=1159 " -a " . ( ( $dir eq 'out' ) ? $props{from} : $props{to} );1160 1155 $props{private} = 1; 1161 1156 … … 1180 1175 my $nick = $props{nick} = $from->GetResource(); 1181 1176 my $room = $props{room} = $from->GetJID('base'); 1182 $props{replycmd} = "jwrite $room";1183 $props{replycmd} .=1184 " -a " . ( ( $dir eq 'out' ) ? $props{from} : $props{to} );1185 if ($props{subject}) {1186 $props{replycmd} .= " -s " . $props{subject}1187 }1188 1189 if ($dir eq 'out') {1190 $props{replysendercmd} = "jwrite ".$props{to}." -a ".$props{from};1191 }1192 else {1193 $props{replysendercmd} = "jwrite ".$props{from}." -a ".$props{to};1194 }1195 1177 1196 1178 $props{sender} = $nick || $room; … … 1203 1185 } 1204 1186 elsif ( $jtype eq 'normal' ) { 1205 $props{replycmd} = "";1206 1187 $props{private} = 1; 1207 1188 } 1208 1189 elsif ( $jtype eq 'headline' ) { 1209 $props{replycmd} = "";1210 1190 } 1211 1191 elsif ( $jtype eq 'error' ) { 1212 $props{replycmd} = "";1213 1192 $props{body} = "Error " 1214 1193 . $props{error_code} … … 1218 1197 } 1219 1198 1220 $props{replysendercmd} = $props{replycmd} unless $props{replysendercmd};1221 1199 return %props; 1222 1200 }
Note: See TracChangeset
for help on using the changeset viewer.