Code: Select all
[lindex $arg 0]
Code: Select all
[lindex [split $arg] 0]
Code: Select all
[lrange $arg 0 end]
Code: Select all
[join [lrange [split $arg] 0 end]]
Code: Select all
set host [lindex [split $uhost @] 1]
Code: Select all
scan $uhost %*\[^@\]@%s host
Code: Select all
scan ident@host %\[^@\]@%s ident host
Code: Select all
if {[botisop $chan]} {
if {$nick == "bla"} {
pushmode $chan +v $nick
}
}
Code: Select all
if {[botisop $chan]} {
if {$nick == "bla"} {
pushmode $chan +v $nick
}
}
Code: Select all
if [botisop $chan] {
if {$nick == "bla"} {
pushmode $chan +v $nick
}
}
Code: Select all
if {[botisop $chan] && $nick == "bla"} {
pushmode $chan +v $nick
}
Code: Select all
if [botisop $chan]&&[string equal "bla" $nick] {
pushmode $chan +v $nick
}
Code: Select all
set mylist [list nick1 nick2 nick3 nick4]
set mylist [join $mylist ,]
# Now, $mylist will return: nick1,nick3,nick3,nick4.
Code: Select all
putdccraw 0 [string length "YOUR DATA\n"] "YOUR DATA\n"
# for example:
# putdccraw 0 [string length "MODE $chan +b $ban\n"] "MODE $chan +b $ban\n"
putquick <text> [options]
Description: sends text to the server, like 'putserv', but it uses a
different (and faster) queue.
Options:
-next: push messages to the front of the queue
-normal: no effect
Returns: nothing
Module: server
putserv <text> [options]
Description: sends text to the server, like '.dump' (intended for direct
server commands); output is queued so that the bot won't flood itself
off the server.
Options:
-next: push messages to the front of the queue
-normal: no effect
Returns: nothing
Module: server
I figured alot don't take a look at Tcl-commands.doc, so reading the quotes might be better for themputhelp <text> [options]
Description: sends text to the server, like 'putserv', but it uses a
different queue intended for sending messages to channels or people.
Options:
-next: push messages to the front of the queue
-normal: no effect
Returns: nothing
Module: server