I'm trying to use picoirc but I can't have any result.
I probably misunderstood how it works, so if anyone knows...
My (actual) try:
Code: Select all
package require picoirc
proc test {} {
set myirc [::picoirc::connect cbirc testor "irc://irc.zeolia.net/test"]
}
proc cbirc {context state args} {
puts "Callback is here with $args"
switch $state {
init {
puts "Initialized with $context"
}
connect {
puts "connected ?"
::picoirc::post $context "/join #test2"
}
close {
puts "Well, close with $args"
}
debug {
puts "D --> $args"
}
default {
puts $state
}
}
}Code: Select all
crazycat@dev:~$ tclsh
% source ircclient.tcl
% test
Callback is here with
Initialized with ::picoirc::irc1
::picoirc::irc1
Eggdrop community