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 

bin raw connect

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
l.kleijn
Voice


Joined: 18 May 2014
Posts: 33

PostPosted: Sat May 24, 2014 3:58 am    Post subject: bin raw connect Reply with quote

Could someone show me how to make a script when a user connect that the eggdrop sends a message to a channel ?
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sat May 24, 2014 4:47 am    Post subject: Reply with quote

On what server?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
l.kleijn
Voice


Joined: 18 May 2014
Posts: 33

PostPosted: Sat May 24, 2014 5:52 am    Post subject: Reply with quote

An UnrealIRCd
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon May 26, 2014 1:24 am    Post subject: Reply with quote

The bot has to have Operator access in order to see the incoming connection messages. If he dose then please copy/paste one message in here so I know what needs to be parsed.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
l.kleijn
Voice


Joined: 18 May 2014
Posts: 33

PostPosted: Wed May 28, 2014 6:24 am    Post subject: Reply with quote

the eggdrop has ircop rights
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Wed May 28, 2014 9:31 am    Post subject: Reply with quote

Please copy/paste the server notice you get when an user connects to the server.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Thu May 29, 2014 2:03 am    Post subject: Reply with quote

For UnrealIRCd, you'd probably use something like..

Code:

set outputchan "#whatever"

bind raw - NOTICE server:notices
proc server:notices {from keyword text} {
  global outputchan

      if {[string match -nocase "*client connecting on*" $text]} {
        set nick [lindex [split $text] 9]
        set hostmask [lindex [split $text] 10]
        set connectport [lindex [split $text] 8]
        putquick "PRIVMSG $outputchan :\002Local Connect\002: $nick $hostmask on port $connectport"
        return 0
      }

      if {[string match -nocase "*client connecting at*" $text]} {
        set nick [lindex [split $text] 8]
        set hostmask [lindex [split $text] 9]
        set at [lindex [split $text] 6]
        set servername [lindex [split $text] 7]
        putquick "PRIVMSG $outputchan :\002Connect\002: $nick $hostmask $at \002(\002$servername\002)\002"
        return 0
      }

      if {[string match -nocase "*client exiting:*" $text]} {
        set nick [lindex [split $text] 6]
        set hostmask [lindex [split $text] 7]
        putquick "PRIVMSG $outputchan :\002Local Quit\002: $nick $hostmask"
        return 0
      }

      if {[string match -nocase "*client exiting at*" $text]} {
        set nick [lindex [split $text] 8]
        set at [lindex [split $text] 6]
        set servername [lindex [split $text] 7]
        putquick "PRIVMSG $outputchan :\002Quit\002: $nick $at \002(\002$servername\002)\002"
        return 0
      }
}


Make sure the eggdrop sets snomask +cF (for local and global connect/quit)

Also, next time, please read what people post to you as caesar already asked you for info and could have given you code sooner.
_________________
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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