and here is yet another way to do it this one without any regex
and to teen
and the bootlicker blackvenom ( the guy that dont even know how to use vars )
look retard i used vars
alias autoJoin {
if (%nmJoin isop %chJoin) {
describe %chJoin -> [MOD] %nmJoin has joined.
}
else {
describe %chJoin -> %nmJoin has joined.
}
}
on *:join:#:{
if (%awFlag == 1) {
.set %checkchan $chan
var %na $read(automsgchan.txt,w,%checkchan)
if (%na = %checkchan) { halt }
else { %chJoin = $chan
%nmJoin = $nick
.timerJoin 1 1 autoJoin
}
}
}
on *:part:#:{
if (%awFlag == 1) {
.set %checkchan $chan
var %na $read(automsgchan.txt,w,%checkchan)
if (%na = %checkchan) { halt }
if ($nick isop $chan) {
describe $chan -> [MOD] $nick has left.
}
else {
describe $chan -> $nick has left.
}
}
}
on *:text:!start auto message:#:{
%awFlag = 1
describe $chan Auto join / leave massage started.
.set %msgchan $chan
var %na $read(automsgchan.txt,w,%msgchan)
if (%na = %msgchan) { write -w $+ %msgchan automsgchan.txt
}
}
on *:text:!stop auto message:#:{
describe $chan Auto join / leave message stopped.
.set %nomsgchan $chan
var %na $read(automsgchan.txt,w,%nomsgchan)
if (%na = %nomsgchan) { halt }
else { write automsgchan.txt $chan
}
}