This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

problems whid ¤ char :S

Help for those learning Tcl or writing their own scripts.
Post Reply
J
JmE
Voice
Posts: 1
Joined: Thu Dec 01, 2005 9:25 am

problems whid ¤ char :S

Post by JmE »

i want this to work but it wont :S

bind PUBM - * pub_test

proc pub_test {nick uhost handle chan text} {

if {[string match "*¤*" $text]} {
puthelp "PRIVMSG $chan : m000"
}

}
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

besides you usually write pubm in lower case and you do not write a space after : in IRC RAW, I cannot see something suspinious. You are most likely having an issue with character encoding. best thing would be copy the character out of eggdrop logs and not out of some chat client windows, since they might use diffrent encoding. telnet terminal windows usually use ISO-8859-1 while I know mIRC to use Windows-1252 (also known as CP1252). You might also check the locale setting from your box. Some systems might even use ISO-8859-15 or UTF-8.
If you are still having issues then read the faszinating manual:
http://www.tcl.tk/man/tcl8.4/TclCmd/encoding.htm
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Post Reply