Thread: irc command
View Single Post
Old 12-14-2004, 02:45 AM  
jeza
Senior Member
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

Code:
      foreach line $lines { 
      
        if { ([lindex [split $line] 0] == "200") || ([lindex [split $line] 0] == "500") || ([lindex [split $line] 0] == "200-") } {
          putquick "PRIVMSG $chan :[lrange [split $line] 1 end]"
        } else {
          putquick "PRIVMSG $chan :$line"
        }
      
      }
jeza is offline   Reply With Quote