This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

return Version reply

Old posts that have not been replied to for several years.
Locked
S
Sorata

return Version reply

Post by Sorata »

hi

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"
}
}
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.
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Re: return Version reply

Post by ]Kami[ »

Sorata wrote:hi

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"
}
}
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 $chan :\001VERSION $arg\001"
 } 
 if {($arg == "")} {
 putserv "PRIVMSG $chan :\001VERSION $nick\001"
}
}
maybe :P?
S
Sorata

Post by Sorata »

no if I send the \001VERSION\001 to the channel, it will reply the versions of all users in the channel $chan.
It does reply the version, but I want to save that reply to a variable, so i can make a fomatted output
z
zleppy
Voice
Posts: 13
Joined: Wed Apr 14, 2004 2:32 pm

Post by zleppy »

hmm..set the version to a variable and output the variable?
S
Sorata

Post by Sorata »

zleppy wrote:hmm..set the version to a variable and output the variable?
yes, right
Locked