Changeset 41
- Timestamp:
- 02/11/09 05:39:06 (3 years ago)
- File:
-
- 1 edited
-
QuoteEngine/QuoteEngine.tcl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
QuoteEngine/QuoteEngine.tcl
r40 r41 67 67 set quote_chanmax 5 68 68 69 # shrink multiple spaces to single spaces when fetching a quote? 70 set quote_shrinkspaces 1 71 69 72 ### code starts here (no need to edit stuff below currently) 70 73 #1.00 … … 146 149 ################################################################################ 147 150 proc quote_rand { nick host handle channel text } { 148 global db_handle quote_noflags 151 global db_handle quote_noflags quote_shrinkspaces 149 152 150 153 if {![channel get $channel quoteengine]} { … … 178 181 set by [lindex $row 1] 179 182 set when [clock format [lindex $row 5] -format "%Y/%m/%d %H:%M"] 183 catch { 184 if {$quote_shrinkspaces == 1} { 185 regsub -all " +" $quote " " quote 186 } 187 set quote [stripcodes bcruag $quote] 188 } 180 189 181 190 puthelp "PRIVMSG $channel :\[\002$id\002\] $quote" … … 193 202 ################################################################################ 194 203 proc quote_fetch { nick host handle channel text } { 195 global db_handle quote_noflags 204 global db_handle quote_noflags quote_shrinkspaces 196 205 197 206 if {![channel get $channel quoteengine]} { … … 224 233 set quote [lindex $row 3] 225 234 catch { 235 if {$quote_shrinkspaces == 1} { 236 regsub -all " +" $quote " " quote 237 } 226 238 set quote [stripcodes bcruag $quote] 227 239 }
Note: See TracChangeset
for help on using the changeset viewer.
