PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Shurlock on 20 April, 2005, 00:52:50

Title: Stange nick detection
Post by: Shurlock on 20 April, 2005, 00:52:50
Can someone please help me out?
I've searched, but too many possible's came up.

I need to detect nicknames using non-ASCII characters, in particular names like ^-_-^

I know the ^  has a special function and I just can't find a solution.

Thanks in advance.
Title:
Post by: bastya_elvtars on 20 April, 2005, 01:00:32
Escape characters?

if string.find(nick,"%^")

if you put a % before a magic char, it loses its special meaning. :)
Title:
Post by: Shurlock on 20 April, 2005, 01:10:07
Thanks Bastya!

I almost feel ashamed!  ;(
Title:
Post by: plop on 20 April, 2005, 22:14:02
try this.
string.find(line, "%W")

plop