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.

raw event question.

Old posts that have not been replied to for several years.
Locked
User avatar
droolin
Halfop
Posts: 64
Joined: Thu Jul 24, 2003 9:07 pm
Contact:

raw event question.

Post by droolin »

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
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

are you sure the bind is not triggering at all?
add a putlog line at the top to see if it triggers
Elen sila lúmenn' omentielvo
User avatar
droolin
Halfop
Posts: 64
Joined: Thu Jul 24, 2003 9:07 pm
Contact:

your right

Post by droolin »

I should have done that before I even posted. Thats was stupid of me. I have all of my debug stuff burried in the middle of an if statment. Like I said, when the eggie joins the channel and issues the very first executation of the who, the raw works. My string gets built properl and everything. But when another nick joins, I see nothing. And im running the eggie with the -nt flags, so I am watching everything that cross's that screen and didnt see anything there.
But, your absolutely right. I havent verified that the bind isnt occuring. Thank you, I will put the putlog in and check for it.

droolin
Locked