Code: Select all
if {[scan $text %s channel] != 1} {
Code: Select all
if {[scan $text %s channel] == 1} {
Code: Select all
if {[scan $text %s text] == 1} {
Code: Select all
if {[string equal -length 1 # $text]} {
Code: Select all
if {[scan $text %s channel]} {
Code: Select all
if {[scan $text %s%s%s first second third] == 3} {
Code: Select all
set text [split $text]
if {[llength $text] == 3} {
set first [lindex $text 0]
set second [lindex $text 1]
set third [lindex $text 2]
}
Code: Select all
if {[set bot [lsearch $nicklist $botnick]] != -1} {set nicklist [lreplace $nicklist $bot $bot]}
Code: Select all
set bot [lsearch $nicklist $botnick]
set nicklist [lreplace $nicklist $bot $bot]
Code: Select all
if {[scan $text %s channel]} {
Code: Select all
set text [regsub -all -- {\s{2,}} [stripcodes bcruag [string trim $text]] " "]
if {[llength [split $text]] == 1} {
Code: Select all
if {[scan [stripcodes bcruag $text] %s%s text dummy] == 1} {
Code: Select all
if {[scan [stripcodes bcruag $text] %s%s text dummy] == 1} {
Code: Select all
% set text "word1 word2 word3"
word1 word2 word3
% scan $text %s%s first second
3
% echo $first
word1
% echo $second
word2