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.

Is there an error in this script...

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
f
fayettemat
Voice
Posts: 27
Joined: Tue Jan 09, 2007 6:10 pm

Is there an error in this script...

Post by fayettemat »

hi guys, is there an error in this script or it is in chatspace IRD's java client?

Code: Select all

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?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

If they can't see it on the Java client, then the client should be fixed and not your script.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
Post Reply