Explorar o código

dictionary: Trim whitespace up front

Will Storey %!s(int64=8) %!d(string=hai) anos
pai
achega
f9da54603b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      dictionary.tcl

+ 1 - 0
dictionary.tcl

@@ -160,6 +160,7 @@ proc ::dictionary::publearn {nick host hand chan argv} {
     return
   }
   set argv [stripcodes "uacgbr" $argv]
+  set argv [string trim $argv]
 
   # We only respond if we are directly addressed (botnick: ). This indicates
   # someone is giving us a command.