| View previous topic :: View next topic |
| Author |
Message |
fayettemat Voice
Joined: 09 Jan 2007 Posts: 27
|
Posted: Mon Feb 19, 2007 5:38 pm Post subject: Is there an error in this script... |
|
|
hi guys, is there an error in this script or it is in chatspace IRD's java client?
| Code: |
proc putnow { a } {
append a "\n"
putdccraw 0 [string length $a] $a
}
bind JOIN - * teen:adult
proc teen:adult {nick uhost hand chan} {
global botnick
set $nick [string tolower $nick]
if {[onchan $nick #staff] && [onchan $nick #teens] && [onchan $nick #adults] || $nick == "Alexia"} {
return 0
} else {
if {[onchan $nick #adults] && [onchan $nick #teens]} {
putnow "PRIVMSG #staff :\00304$nick IS IN TEENS AND ADULTS!\003"
}
}
}
#############################################
# COLORS #
# to change the color look for the string #
# \00304 and change the 04 part to the color#
# you would like to use :) #
#-------------------------------------------#
# 00 - white` | 01 - black #
# 02 - blue | 03 - green #
# 04 - light red | 05 - Brown #
# 06 - Purple | 07 - Orange #
# 08 - Yellow | 09 - Light Green #
# 10 - Cyan | 11 - Light Cyan #
# 12 - Light Blue | 13 - Pink #
# 14 - Grey | 15 - Light Grey #
#############################################
putlog "Teen-adult version 2 loaded"
|
the reason I think it MIGHT be an error with their java client is because IRC users can see the color just fine.... any ideas on how to fix it other then removing color? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Feb 19, 2007 6:30 pm Post subject: |
|
|
If they can't see it on the Java client, then the client should be fixed and not your script. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Feb 19, 2007 6:31 pm Post subject: |
|
|
So the possible error would be wether clients see colors or not?
If so, it's pretty obvious it's the client's "fault" (keep in mind that colors is'nt standard in irc, just a de-facto standard implemented by some clients).
If the client does'nt support colors, there's nothing you can do within the script... _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|