egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

receive notice via spam

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
demetrius_reis
Halfop


Joined: 10 Aug 2010
Posts: 42

PostPosted: Fri Sep 23, 2011 12:42 am    Post subject: receive notice via spam Reply with quote

The bot is not getting spam via ctcp or notice and, as I use this same script using the two options or two scripts in order to receive the notice via spam in the channel?
Code:

#Canal onde o bot ira avisar sobre SPAMs
 set canal "#age_2_ops"

bind msgm -|- *www* malware
bind msgm -|- *http* malware
bind msgm -|- *xit* malware
bind msgm -|- *cheat* malware

proc malware {mad7684 mad8594 mad873 mad8954} {
    global canal
   putquick "PRIVMSG #age_2_ops :cbrr Nick: $mad7684 Host: 14$mad8594 Tipo de SPAM: 14Home Page Msg: 2$mad8954"

}

putlog "spam.tcl"
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Sep 23, 2011 10:18 am    Post subject: Reply with quote

I suppose you're looking for the "notc" and "ctcp" bindings...
Code:
    (7)  NOTC (stackable)
         bind notc <flags> <mask> <proc>
         procname <nick> <user@host> <handle> <text> <dest>

         Description: dest will be a nickname (the bot's nickname,
           obviously) or a channel name. mask is matched against the entire
           notice and can contain wildcards. It is considered a breach of
           protocol to respond to a /notice on IRC, so this is intended for
           internal use (logging, etc.) only. Note that server notices do
|          not trigger the NOTC bind. If the proc returns 1, Eggdrop will
|          not log the message that triggered this bind.

           New Tcl procs should be declared as
             proc notcproc {nick uhost hand text {dest ""}} {
               global botnick; if {$dest == ""} {set dest $botnick}
               ...
             }
           for compatibility.
         Module: server


    (15) CTCP (stackable)
         bind ctcp <flags> <keyword> <proc>
         proc-name <nick> <user@host> <handle> <dest> <keyword> <text>

         Description: dest will be a nickname (the bot's nickname, obviously)
           or channel name. keyword is the ctcp command (which can contain
           wildcards), and text may be empty. If the proc returns 0, the bot
           will attempt its own processing of the ctcp command.
         Module: server


Since these bindings provide different sets of parameters, you'll have to adopt your procs accordingly; either making one proc for each kind of binding, or altering your proc to support optional or arbitrary arguments. I'd generally suggest you go for the first option.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
demetrius_reis
Halfop


Joined: 10 Aug 2010
Posts: 42

PostPosted: Fri Sep 23, 2011 11:28 am    Post subject: Reply with quote

oks, I'll try the news, thanks for the help!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber