The bot has to have Operator access in order to see the incoming connection messages. If he dose then please copy/paste one message in here so I know what needs to be parsed.
Once the game is over, the king and the pawn go back in the same box.
set outputchan "#whatever"
bind raw - NOTICE server:notices
proc server:notices {from keyword text} {
global outputchan
if {[string match -nocase "*client connecting on*" $text]} {
set nick [lindex [split $text] 9]
set hostmask [lindex [split $text] 10]
set connectport [lindex [split $text] 8]
putquick "PRIVMSG $outputchan :\002Local Connect\002: $nick $hostmask on port $connectport"
return 0
}
if {[string match -nocase "*client connecting at*" $text]} {
set nick [lindex [split $text] 8]
set hostmask [lindex [split $text] 9]
set at [lindex [split $text] 6]
set servername [lindex [split $text] 7]
putquick "PRIVMSG $outputchan :\002Connect\002: $nick $hostmask $at \002(\002$servername\002)\002"
return 0
}
if {[string match -nocase "*client exiting:*" $text]} {
set nick [lindex [split $text] 6]
set hostmask [lindex [split $text] 7]
putquick "PRIVMSG $outputchan :\002Local Quit\002: $nick $hostmask"
return 0
}
if {[string match -nocase "*client exiting at*" $text]} {
set nick [lindex [split $text] 8]
set at [lindex [split $text] 6]
set servername [lindex [split $text] 7]
putquick "PRIVMSG $outputchan :\002Quit\002: $nick $at \002(\002$servername\002)\002"
return 0
}
}
Make sure the eggdrop sets snomask +cF (for local and global connect/quit)
Also, next time, please read what people post to you as caesar already asked you for info and could have given you code sooner.
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.