ignore whitespace master
authorChristian Weiske <cweiske@cweiske.de>
Fri, 21 May 2010 06:54:35 +0000 (08:54 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 21 May 2010 06:54:35 +0000 (08:54 +0200)
Psist.pm

index 8ef7239..21b3300 100644 (file)
--- a/Psist.pm
+++ b/Psist.pm
@@ -80,10 +80,10 @@ sub load_config
   print "loading contacts...\n" unless $self->{silent};
   open(CONFIGXML, $self->{profile} . "/accounts.xml");
   while($row = <CONFIGXML>) {
-    if($row =~ /<name type="QString">(.*?)<\/name>/) {
+    if($row =~ /<name type="QString"[^>]*>(.*?)<\/name>/) {
         $nick = $1;
     }
-    if($row =~ /<jid type="QString">(.*?)<\/jid>/) {
+    if($row =~ /<jid type="QString"[^>]*>(.*?)<\/jid>/) {
       if(length($1) == 0) {
           next;
       }