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.

bin raw connect

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
l
l.kleijn
Voice
Posts: 33
Joined: Sun May 18, 2014 10:02 am

bin raw connect

Post by l.kleijn »

Could someone show me how to make a script when a user connect that the eggdrop sends a message to a channel ?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

On what server?
Once the game is over, the king and the pawn go back in the same box.
l
l.kleijn
Voice
Posts: 33
Joined: Sun May 18, 2014 10:02 am

Post by l.kleijn »

An UnrealIRCd
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
l
l.kleijn
Voice
Posts: 33
Joined: Sun May 18, 2014 10:02 am

Post by l.kleijn »

the eggdrop has ircop rights
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
User avatar
Get_A_Fix
Master
Posts: 206
Joined: Sat May 07, 2005 6:11 pm
Location: New Zealand

Post by Get_A_Fix »

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

Code: Select all

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.
Post Reply