I got that:
Code: Select all
bind pub - !version version
proc version {nick uhost hand chan arg} {
if {($arg != "")} {
putserv "PRIVMSG $arg :\001VERSION $arg\001"
}
if {($arg == "")} {
putserv "PRIVMSG $nick :\001VERSION $nick\001"
}
}
Code: Select all
bind pub - !version version
proc version {nick uhost hand chan arg} {
if {($arg != "")} {
putserv "PRIVMSG $arg :\001VERSION $arg\001"
}
if {($arg == "")} {
putserv "PRIVMSG $nick :\001VERSION $nick\001"
}
}
Sorata wrote:hi
I got that:It's let's the bot ask for users version, but I want the bot to write that into the channel, but I have no idea how, I searched for an answer a lot, but did'n find anything about it.Code: Select all
bind pub - !version version proc version {nick uhost hand chan arg} { if {($arg != "")} { putserv "PRIVMSG $arg :\001VERSION $arg\001" } if {($arg == "")} { putserv "PRIVMSG $nick :\001VERSION $nick\001" } }
Code: Select all
bind pub - !version version
proc version {nick uhost hand chan arg} {
if {($arg != "")} {
putserv "PRIVMSG $chan :\001VERSION $arg\001"
}
if {($arg == "")} {
putserv "PRIVMSG $chan :\001VERSION $nick\001"
}
}