Bug 146522

Summary: Fortune script doesn't work when variable expansion is turned off
Product: [Applications] konversation Reporter: Shinjo Park <kde>
Component: generalAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Shinjo Park 2007-06-08 01:47:55 UTC
Version:           1.0.1+ #3193 (using KDE 3.5.7, Kubuntu (feisty) 4:3.5.7-0ubuntu1~feisty2)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.20-16-generic

When I turned off variable expansion and entered /fortune in the window, then it don't make text bold and colorized instead of displaying weird sequences, like "%B%C4Random Fortune:%C%B". Maybe variable expansion should be enabled inside the script, or we should fine other way to solve this problem.
Comment 1 Peter Simonsson 2007-07-07 15:14:36 UTC
SVN commit 684873 by psn:

Make fortune work when variable expansion is turned off
BUG:146522


 M  +1 -1      fortune  


--- branches/extragear/kde3/network/konversation/scripts/fortune #684872:684873
@@ -25,7 +25,7 @@
 srand;
 $LINE = RANDOM_INT(0,$TOTAL_LINES - 5);
 
-$MESSAGE = "%B%C4Random Fortune:%C%B ";
+$MESSAGE = "4Random Fortune: ";
 
 while (<FORTUNES>) {
     $LINE_COUNT++;