egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is there an error in this script...

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
fayettemat
Voice


Joined: 09 Jan 2007
Posts: 27

PostPosted: Mon Feb 19, 2007 5:38 pm    Post subject: Is there an error in this script... Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Feb 19, 2007 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Feb 19, 2007 6:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber