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.

Hiding /msgs to the bot?

Old posts that have not been replied to for several years.
Locked
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Hiding /msgs to the bot?

Post by MD87 »

Is it possible to hide messages sent to the bot, even if users have +m? I'm making a 'login' proc for my script, which puts something like this in the logs:

[01:25] (MD87!MD87@m117-mp1.cvx1-a.lei.dial.ntli.net) login md87 PASS...

but if I set console mode +m, I see

[01:22] (MD87!MD87@m117-mp1.cvx1-a.lei.dial.ntli.net) login md87 PASS...
[01:22] [MD87!MD87@m117-mp1.cvx1-a.lei.dial.ntli.net] login md87 <MY PASS HERE>

Is there anyway to stop this? :-?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I am not sure which bidn you have used.

However, see the section in tcl-commands.doc regarding return codes (below the binds information).

WHat you return, will usualy effect how eggdrop works.

FOr floods, you can make a script that will do it's own protection, or get eggdrop to do it's own as well.

With msg binds, returning somthing like 1, will force it lot to log and so on.
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Post by MD87 »

I was using msgm, returning 0, I've tried msgm returning 1, and msg returning 1 & 0, but it still logs it :/ I've included the proc as it is atm below to see if that helps :-?
bind msgm -|- * mdbots:msgm

proc mdbots:msgm { nick address handle text } {
switch "[lindex $text 0]" {
clearchan { mdbots:chan:clear $nick $address $handle [lrange $text 1 end] }
help { mdbots:help:main $nick $address $handle [lrange $text 1 end] }
login { mdbots:login:msg $nick $address $handle [lrange $text 1 end] }
}
}

proc mdbots:login:msg { nick address handle text } {
set host [mdbots:generic:gethost $nick]
set user [lindex $text 0]
set pass [lindex $text 1]
if { [passwdok $user $pass] } {
putserv "NOTICE $nick :Password OK. Added host $host"
#TODO: Actually add the host :o
putcmdlog "($nick!$address) login $user PASS..."
}
return 0;
}
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Don't use the msgm bind for this.

Use the MSG bind.

It maks things far more easier to manage.
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Post by MD87 »

Just tried using a msg bind w/o the proc with the switch in and it works fine :D

TY
Locked