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.

Stop echoing some messages...

Old posts that have not been replied to for several years.
Locked
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Stop echoing some messages...

Post by cerberus_gr »

Hello,

I use this script:

Code: Select all

bind msgm - * abcd:msgm
proc abcd:msgm { nick uhost hand text } {
    putserv "PRIVMSG NickServ :status $nick"
}
But when the nickserv answers the bot "echoes" the message from nickserv to the party line.

So, I want the bot NOT to "echoes" the message the to party line. If I use ignore command, the bot will ignore nickserv totally.

I wrote this code:

Code: Select all

bind notc - "*STATUS*" ns:status
proc ns:status { nick uhost hand text {dest ""} } {
    global botnick
    if {($nick == NickServ) && {$dest == $botnick} {
         return 0
         # This suppose not to log the bind which calls this proc!!!
    }
}
but I didn't see any results :(. Any ideas?
User avatar
CrazyCat
Revered One
Posts: 1359
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

your script works well: it doesn't do anything if NickServ send a *STATUS* to your eggdrop...
If you want the eggdrop answers but not echoes in console, you'd better try .help console
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Post by cerberus_gr »

[21:48:22] <CerberuS> [21:49] [xxxxx!xxxxx@....] join #....
[21:48:28] <CerberuS> [21:49] -NickServ (service@.....)- STATUS sogoku_: Identified (3)

I can't understand why it says the message to +m. Of course the .console command is a solution, but I want to see ALL prive messages to the bot, but NOT some of these, that I have set.

for example I have written a script which checks the fileservers of a chan by writing @find *.txt to this chan. The fileservers sends a prive msg to the bot and the only I want is not to see this message... (I want to see all the other prive messages)

What could I do?
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Post by cerberus_gr »

any help?
User avatar
CrazyCat
Revered One
Posts: 1359
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

no, I'm trying to find a way to resolv it, but...
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Post by cerberus_gr »

Did anybody have eny idea???
Plz help me if anyone knows :(
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

The "message" from NickServ looks like a NOTICE to me. To exempt some users from logging you need to override the internal raw binds passing the incoming traffic to the internal message parser. (use a raw bind to do this) Another way would be to set trigger-on-ignore to 1 and ignore the users you don't want logged.
Btw: notc binds don't care about the return value. Check the part about "RETURN VALUES" in tcl-commands.doc
Have you ever read "The Manual"?
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Post by cerberus_gr »

user you are great. I understand what you mean and now I'm changing my code. Thx!
Locked