those are chars in Hebrew, my clients use a web client that transforms nicks into hebrew nicks, so it turns like that.
the first word of the PM is the real nickname,
hope you understood.
But as you can see, there's no space between the "real" nick name and the word "test": (ßΘ:átest. So how is the script supposed to tell between the nickname and the password? Does it always end in á or something?
The confusing thing is that you've shown several different ways, and they seem to be totally random. First you had:
I took this from the console.
I bet that if I will go into the logs it will have a space.
Question is, if there is a way that the eggy will search the PM for the word test, doesn't matter if it's like 'blhasudhastest' or just 'test'.
if the word is there, op him.
that way it doesn't matter if there is a space or not.
set password "*test*"
set users "^`bj"
set chan "#^`lqjre"
bind msgm - * premsg
proc premsg {nick host hand text} {
global password users chan
set first [lindex $text 0]
if {[string match $password $text]} {
if {![string match -nocase $nick "$users*"]} {return 0}
putlog "-V- User $nick is being opped @ $chan"
putserv "mode $chan +o $nick"
putserv "NOTICE $nick :You're now opped on $chan!"
} else {
putlog "-Error- user: $nick typed WRONG password ($first)"
}
}
Found another problem
If I want to put multiple chans(meaning, i put the script in 4 files, each file has diff users and chan).
It just gives an error about premsg...
Is there a way to fix it?