I searched for script that do this, but coulnd find one.
The banning part shouldnt be a problem, but i dont have a clue how to check if a user has left.
Any help would be greatly appreciated
The best way to start learning is to start helping.
bind part -|- *!*@* lastban_check
bind pub o|o !lastban lastban_do
proc lastban_check {nick uhost hand chan msg } {
set lastleft_nick $nick
set lastleft_host $uhost
}
proc lastban_do {nick uhost hand chan arg } {
global lastleft_nick lastleft_host
newchanban $chan $lastleft_nick!$lastleft_host $nick $arg
}
It says the variable lastleft_host doesnt exist...
I know, this script would still suck IF it would work, since it would not have multiple channel support, so if anyone knows a way around this too... *hint*
Thanks.
The best way to start learning is to start helping.
On forums where you expect all the help you can get, without contributing yourself, you will find that the more you bump it, the less chance you have of obtaining help.
People will help you when they are good and ready.
If you feel I am incorrect in saying this, can I ask you where in the registration document it said we will help you in under 24 hours (your bump threads came in less than that).
bind part - "*" part:msg
bind pub o|o !lastban pub:lastban
proc part:msg { nick uhost hand chan msg } {
global lastleft
set lastleft(nick) $nick
set lastleft(host) $uhost
}
proc pub:lastban { nick uhost hand chan text } {
global lastleft
newchanban $chan $lastleft(nick)!$lastleft(host) $nick $text
}
just barely tested it so if anything [censored] up just drop a line