Author: nornagon
Date: 2005-08-10 08:33:17 -0400 (Wed, 10 Aug 2005)
New Revision: 912

Modified:
   trunk/clients/ravish/ravish2.rb
Log:
Escaping powah. Also, update your copies of T::V, I fixed some things.

Modified: trunk/clients/ravish/ravish2.rb
===================================================================
--- trunk/clients/ravish/ravish2.rb     2005-08-06 18:25:05 UTC (rev 911)
+++ trunk/clients/ravish/ravish2.rb     2005-08-10 12:33:17 UTC (rev 912)
@@ -138,10 +138,12 @@
                when :link_failed
                        srvmsg "Link failed: #{args[0]}"
                when :message_sent
-                       srvmsg "%(cmesg)C: #{args[0].inspect}"
+                       srvmsg "%(cmesg)C: " +
+                               args[0].collect! { |s| s.kind_of?(String) and 
s.tvescape }.inspect
                when :message_received
                        lag_check_msg args[0]
-                       srvmsg "%(smesg)S: #{args[0].inspect}"
+                       srvmsg "%(smesg)S: " +
+                               args[0].collect! { |s| s.kind_of?(String) and 
s.tvescape }.inspect
                else
                        if type.to_s =~ /^ev_([A-Z:]+)$/
                                cmd = $1
@@ -520,9 +522,9 @@
                end
                if win = find_window(:channel, cid)
                        activity win, 2
-                       win.window.addline msg.join(' '), pref  
+                       win.window.addline msg.join(' ').tvescape, pref 
                else
-                       srvmsg msg.join(' '), "Stray IN: #{cid}:#{pref}"
+                       srvmsg msg.join(' ').tvescape, "Stray IN: 
#{cid}:#{pref}"
                end
        end
 
@@ -540,7 +542,7 @@
                        @term.switch_window win.window
                end
                activity win, 3
-               win.window.addline msg.join(' '), pref
+               win.window.addline msg.join(' ').tvescape, pref
        end
 
        ## USER COMMANDS ##
@@ -611,7 +613,7 @@
                        @windows << win
                end
                
-               win.window.addline args.join(' '),
+               win.window.addline args.join(' ').tvescape,
                        "%(nickdecs)<%(mynick)[EMAIL 
PROTECTED](nickdecs)>%(default) "
                @haver.msg 'TO', uid, 'say', args.join(' ')
        end


Reply via email to