Răsfoiți Sursa

* PicWidth and PicHeight apparently got mixed up in the last version,
fixed.

Morten Brix Pedersen 22 ani în urmă
părinte
comite
c19493942d
3 a modificat fișierele cu 13 adăugiri și 2 ștergeri
  1. 2 0
      docs/Changelog
  2. 2 2
      modules/Pisg/HTMLGenerator.pm
  3. 9 0
      pisg.cfg

+ 2 - 0
docs/Changelog

@@ -3,6 +3,8 @@ pisg (x.xx)
    * Fixed some bugs in the mIRC6 format.
    * Backwards-compatibility for old option names (which became deprecated in
      0.37) has been removed.
+   * PicWidth and PicHeight apparently got mixed up in the last version,
+   fixed.
 
 pisg (0.51) - Wed Jan, 21st 2004
    * Fixed a bug in the irssi format where an action could be recognized as a

+ 2 - 2
modules/Pisg/HTMLGenerator.pm

@@ -1941,8 +1941,8 @@ sub _user_pic
     my $pic = $self->{users}->{userpics}{$nick} || $self->{cfg}->{defaultpic};
     $pic = $self->{cfg}->{imagepath} . randomglob($pic, $self->{cfg}->{imageglobpath})
         unless $pic =~ /^http:\/\//i;
-    my $height = $self->{cfg}->{picheight} ? " width=\"$self->{cfg}->{picheight}\"" : "";
-    my $width = $self->{cfg}->{picwidth} ? " height=\"$self->{cfg}->{picwidth}\"" : "";
+    my $height = $self->{cfg}->{picheight} ? " height=\"$self->{cfg}->{picheight}\"" : "";
+    my $width = $self->{cfg}->{picwidth} ? " width=\"$self->{cfg}->{picwidth}\"" : "";
     my $alt = $self->{users}->{userpics}{$nick} ? " alt=\"$nick\"" : "";
     _html("<img src=\"$pic\"$width$height$alt />");
 

+ 9 - 0
pisg.cfg

@@ -17,3 +17,12 @@
 #   OutputFile="index.html"
 # </channel>
 #
+
+<channel="#foo">
+   Logfile="../logsamples/mirc-sample.log"
+   Format="mIRC"
+   OutputFile="index.html"
+</channel>
+
+<set PicHeight="500">
+<user nick="Death_INC" pic="foo.jpg">