| View previous topic :: View next topic |
| Author |
Message |
edu Voice
Joined: 29 Oct 2006 Posts: 31
|
Posted: Sun Oct 29, 2006 5:25 pm Post subject: |
|
|
| Code: |
setudef flag X
bind join - * edu:join:X
proc edu:join:X {nickname hostname handle channel} {
if {![channel get $channel X]} { return }
foreach ban [banlist $channel] {
set ban_host [lindex $ban 0]
set ban_reason [lindex $ban 1]
set ban_by [lindex $ban 5]
if {[string match -nocase $ban_host $nickname!$hostname]} {
putquick "PRIVMSG X :ban $channel $ban_host 1 75 $ban_reason"
}
}
}
|
_________________ Seek the truth |
|
| Back to top |
|
 |
mavericku Halfop

Joined: 12 Jun 2005 Posts: 62 Location: somewhere in the world
|
Posted: Sun Oct 29, 2006 7:10 pm Post subject: |
|
|
Thank you very much...  _________________ mavericku |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon Oct 30, 2006 3:43 am Post subject: |
|
|
Pointless foreach but anyway you should add a 'break' statement when a match had been found as there is no need to continue matching internal bans with his host as he in theory got banned tough X. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Tue Jun 17, 2008 4:53 pm Post subject: |
|
|
I'm sorry .. but can someone explain how to add bans to this list ?
I tried to ban through telnet ( .+ban <nick> <#chan> reason ) but it doesnt work |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Wed Jun 18, 2008 2:39 am Post subject: |
|
|
| speechles wrote: |
Did you forget to .chanset #yourchan +X? |
THX ... it work's now |
|
| Back to top |
|
 |
|