In a specific channel that is a monitor channel of a network for user joins, I wish to keep track of nicks that join and part the channel. I am only instrested in specific nicks though, nicks that have the following in their real name *Blitzed Open Proxy Monitor*. What I used to try and accomplish this was a join event to the channel. I issue a: putserv"who +g *Blitzed Open Proxy Monitor*", and then a bind for raw 352 is set up to interpit what is returned. The eggdrop that will be using this script, is an ircop and has the proper modes to do network wide "who" against real names.
The bind raw 352 event works the when the eggdrop joins the channel, but when other nicks join the channel the raw event does not seem to triger. I have another raw event set up to strip out the ip's of user joins against the network. raw Notice, this works every time.
I really dont want to have nicks in the user base, because the proxy nicks I am looking for come and go. I was trying to make this script so that I have to perform very little maintance against it. The one thing I am sure of, the nicks I need to know about have previously stated specific text in their real name.
Follows is the code that I used, any sugestions???
bind join - * Check_Onjoin
proc Check_Onjoin {nick uhost hand chan} {
global bopm_channel
global active_bopm_bots
global active_bopm_servers
global initial_flag
set $active_bopm_bots " "
set $active_bopm_servers " "
if {$chan == $bopm_channel} {
if {$initial_flag != "1"} {
putserv "who +g *Blitzed Open Proxy Monitor*"
set initial_flag "1"
} else {
unbind raw - 352 Check_Raw_352
putserv "who +g *Blitzed Open Proxy Monitor*"
}
puthelp "PRIVMSG $chan : $nick has joined $chan"
}
bind raw - 352 Check_Raw_352
proc Check_Raw_352 {from word text} {
global bopm_channel
global active_bopm_bots
if {([string match *Blitzed* $text]) && ([string match *$bopm_channel* $text])} {
set bopm_bot_server [lindex $text 4]
append active_bopm_bots [lindex $text 5] " "
puthelp "PRIVMSG $bopm_channel : $from $word $text"
puthelp "PRIVMSG $bopm_channel : bopms found so far is $active_bopm_bots"
}
return
}
Now, I read in the manual. That if the proc returns one, that eggdrop will not process the line any further(this will cause the eggdrop to act oddly in some case's).
With that last statement said and done. Hu???
Any help would be very much appriceated.
Thanks
droolin