Thread Wert aufzählen (6 answers)
Opened by Gast at 2008-02-02 11:55

Gast Gast
 2008-02-03 20:50
#105526 #105526
Die Lösung war leichter ;) Danke trotzdem!

Code: (dl )
1
2
3
4
5
6
7
8
9
my $s_count = 0;
my $spml = $main->{settings}{smileys_per_message_limit};

if ($spml < 0 || $main->hasPermission('ignore_smileys_per_message_limit')) {
$$text =~ s/([^\s<>]+)/($self->{smileys}{$1}||$1)/ge;
}
else {
$$text =~ s/([^\s<>]+)/($self->{smileys}{$1} && $s_count++<$spml ? $self->{smileys}{$1} : $1)/ge;
}

View full thread Wert aufzählen