Compare two strings not working - 17/05/16 05:31 AM
Hi, I'm trying to compare two strings using a regex but even with basic regex it does not seems to work when I put it in an If statement.
Code:
on *:text:*:#: { ; Returns 1 => This is normal msg $chan $regex(test,test) ; Returns 0 => This is normal msg $chan $regex(test,hi) ; Echo Passed! in the channel even if it's false if($regex(test,hi)) { msg $chan Passed! } }