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 

wierd characters when dcc chatting

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
DanielC
Voice


Joined: 05 Apr 2007
Posts: 2

PostPosted: Thu Apr 05, 2007 9:17 am    Post subject: wierd characters when dcc chatting Reply with quote

I've just set up my partyline on the most recent eggdrop version. When I initiate the dccchat all is fine. But the text appears weird. A small portion of what it does is
Quote:
-09:17:57- (Bob) Hey Daniel! My name is Bob and I am running eggdrop v1.6.18, on FreeBSD 6.1-RELEASE-security.
-09:17:57- (Bob)
-09:17:57- (Bob) Local time is now 09:15
-09:17:57- (Bob) You are an owner of this bot. Only +n users can see this! For more info,
-09:17:57- (Bob) see .help set motd. Please edit the motd file in your bot's 'text'
-09:17:57- (Bob) directory.
-09:17:57- (Bob) Use .help for basic help.
-09:17:57- (Bob) Use .help <command> for help on a specific command.
-09:17:57- (Bob) Use .help all to get a full command list.
-09:17:57- (Bob) Use .help *somestring* to list any help texts containing "somestring".
Is there something I'm missing? thanks in advaned for any help.
Back to top
View user's profile Send private message
hotrs
Voice


Joined: 03 Apr 2007
Posts: 13

PostPosted: Thu Apr 05, 2007 10:08 am    Post subject: Reply with quote

try

Code:
.fixcodes


in the chat console.

But I still search a way to modify it permanent ...

hth,
hotrs
Back to top
View user's profile Send private message
DanielC
Voice


Joined: 05 Apr 2007
Posts: 2

PostPosted: Thu Apr 05, 2007 10:18 am    Post subject: Reply with quote

Thanks hotrs. Worked like a charm.
Back to top
View user's profile Send private message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Thu Jan 15, 2009 7:34 am    Post subject: Reply with quote

Code:
.fixcodes


Did not work for me Sad
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Jan 15, 2009 10:32 am    Post subject: Reply with quote

@Fire-fox: with some older eggies you might have to use the command twice in a row due to a bug (only applies to ansi/mirc-style controlcodes).

@hotrs: you could use the chon binding and call *dcc:fixcodes manually, with something like this (also adds a new dcc command, fixme, to toggle auto-switching on a user basis).
Code:
bind chon - * DoFixcodes
proc DoFixcodes {hand idx} {
 if {[getuser $hand XTRA fixcodes] == 1} {
  *dcc:fixcodes $hand $idx ""
 }
}

bind dcc - fixme DccFixcodes
proc DccFixcodes {hand idx txt} {
 if {[getuser $hand XTRA fixcodes] == 1} {
  setuser $hand XTRA fixcodes 0
  *dcc:fixcodes $hand $idx $txt
 } {
  setuser $hand XTRA fixcodes 1
  *dcc:fixcodes $hand $idx $txt
 }
}

_________________
NML_375, idling at #eggdrop@IrcNET


Last edited by nml375 on Thu Jan 15, 2009 11:23 am; edited 1 time in total
Back to top
View user's profile Send private message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Thu Jan 15, 2009 10:50 am    Post subject: Reply with quote

should this just be placed in a .tcl and load it?
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jan 15, 2009 5:17 pm    Post subject: Reply with quote

Yes, just like any other Tcl script.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Fri Jan 16, 2009 5:17 am    Post subject: Reply with quote

Okay thanks Smile
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Sun Jan 18, 2009 3:10 pm    Post subject: Reply with quote

hey

mayby im lost here Smile

But i have loaded the script. and nothing happens when the bot rehash?

mayby im missing something here?
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Jan 19, 2009 1:05 pm    Post subject: Reply with quote

@fire-fox: Use the .fixme command that's added to toggle whether you'd like the .fixcodes command to be issued automatically upon connect. Also, be advised that this script was not written to counter the bug mentioned earlier, but as a response to hotrs' query to automate the process.. Hence, if you do suffer from this bug, you'll still have to use the .fixcodes command manually.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Mon Jan 19, 2009 3:39 pm    Post subject: Reply with quote

Hey

thanks for the reply Smile

But why the messed up text. haven't had this issue before i used eggdrop. but i didn't use SSL that time. could it have something to do with that?
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Jan 19, 2009 8:58 pm    Post subject: Reply with quote

@Fire-fox:
It is most likely caused by that, yes.
Telnet clients and mIRC (and the likes) uses completely different controlcodes for bold, underline, etc. Telnet uses Ansi escape sequences wherease mirc uses single character controlcodes. Eggdrop does it best to try and guess whether you are connecting through telnet or dcc chat, and uses controlcodes based on that. Obviously, sometimes eggies get this wrong, and you see junk. That's what the .fixcodes command is there for.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Wed Jan 21, 2009 2:06 am    Post subject: Reply with quote

@nml375

Thanks for the reply Smile
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help 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