| View previous topic :: View next topic |
| Author |
Message |
l.kleijn Voice
Joined: 18 May 2014 Posts: 33
|
Posted: Sat May 24, 2014 3:58 am Post subject: bin raw connect |
|
|
| 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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sat May 24, 2014 4:47 am Post subject: |
|
|
On what server? _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
l.kleijn Voice
Joined: 18 May 2014 Posts: 33
|
Posted: Sat May 24, 2014 5:52 am Post subject: |
|
|
| An UnrealIRCd |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon May 26, 2014 1:24 am Post subject: |
|
|
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 |
|
 |
l.kleijn Voice
Joined: 18 May 2014 Posts: 33
|
Posted: Wed May 28, 2014 6:24 am Post subject: |
|
|
| the eggdrop has ircop rights |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Wed May 28, 2014 9:31 am Post subject: |
|
|
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 |
|
 |
Get_A_Fix Master

Joined: 07 May 2005 Posts: 206 Location: New Zealand
|
Posted: Thu May 29, 2014 2:03 am Post subject: |
|
|
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 |
|
 |
|