ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Net-IRC3/lib/Net/IRC3/Util.pm
(Generate patch)

Comparing Net-IRC3/lib/Net/IRC3/Util.pm (file contents):
Revision 1.10 by elmex, Sun Feb 25 10:58:59 2007 UTC vs.
Revision 1.11 by elmex, Tue Mar 6 21:44:53 2007 UTC

189 189
190 if (ref ($prfx) eq 'HASH') { 190 if (ref ($prfx) eq 'HASH') {
191 $prfx = $prfx->{prefix}; 191 $prfx = $prfx->{prefix};
192 } 192 }
193 193
194 # this splitting does indeed use the servername as nickname, but there
195 # is no way for a client to distinguish.
194 $prfx =~ m/^\s*([^!]*)!([^@]*)@(.*?)\s*$/; 196 $prfx =~ m/^\s*([^!]*)(?:!([^@]*))?(?:@(.*?))?\s*$/;
195 return ($1, $2, $3); 197 return ($1, $2, $3);
196} 198}
197 199
198=item B<prefix_nick ($prefix)> 200=item B<prefix_nick ($prefix)>
199 201

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines