Bug 146522 - Fortune script doesn't work when variable expansion is turned off
Summary: Fortune script doesn't work when variable expansion is turned off
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-08 01:47 UTC by Shinjo Park
Modified: 2007-07-07 15:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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++;