Skip to content
GuarDDog v. 5

Encoded Commands..

A TG007 community discussion started by shanespen.

Discussion 8 posts
Page 1 of 1
Open
Topic #6695 · 8 published posts · 987 views

I have an alias, csay, that replaces characters with an encoded version of it, and when I perform the command with DogCollar, it sends the unicode? (with the symbols) to the channel...

Is there anyway to fix this?

I think there is already an alias in dogcollar not sure though. should be something like dc.encode or something.

Pomperom

It's there, but I can't seem to get it to work..=\

$command(text)

Pomperom

i'll need to see the code to help...

csay {
 if ($1- == $null) { halt }
 else if ($1- != $null) {
   .set %cmap.say $1-
   .set %cmap.say $replace(%cmap.say,a,α)
   .set %cmap.say $replace(%cmap.say,b,ÑŠ)
   .set %cmap.say $replace(%cmap.say,c,Ñ)
   .set %cmap.say $replace(%cmap.say,d,d)
   .set %cmap.say $replace(%cmap.say,e,Ñ”)
   .set %cmap.say $replace(%cmap.say,f,f)
   .set %cmap.say $replace(%cmap.say,g,g)
   .set %cmap.say $replace(%cmap.say,h,н)
   .set %cmap.say $replace(%cmap.say,i,ι)
   .set %cmap.say $replace(%cmap.say,j,ј)
   .set %cmap.say $replace(%cmap.say,k,к)
   .set %cmap.say $replace(%cmap.say,l,l)
   .set %cmap.say $replace(%cmap.say,m,м)
   .set %cmap.say $replace(%cmap.say,n,и)
   .set %cmap.say $replace(%cmap.say,o,о)
   .set %cmap.say $replace(%cmap.say,p,Ï)
   .set %cmap.say $replace(%cmap.say,q,q)
   .set %cmap.say $replace(%cmap.say,r,Ñ)
   .set %cmap.say $replace(%cmap.say,s,s)
   .set %cmap.say $replace(%cmap.say,t,Ñ‚)
   .set %cmap.say $replace(%cmap.say,u,u)
   .set %cmap.say $replace(%cmap.say,v,ν)
   .set %cmap.say $replace(%cmap.say,w,ω)
   .set %cmap.say $replace(%cmap.say,x,Ñ…)
   .set %cmap.say $replace(%cmap.say,y,ч)
   .set %cmap.say $replace(%cmap.say,z,z)
   .set %cmap.say $replace(%cmap.say,$chr(32),À`)
   if (%cmap.say == $null) { halt }
   else { msg $chan %cmap.say | unset %cmap.say }
   )
 }
}

it's because you already have it in encoded format, use the decoded format and it should work, otherwise, under DogCollar Connection [Main] > Setup Dialog, Room options, then look down the list for "encode" out going, and use that. But really, i would not turn encode out going off, i would change all your's to it's orignial decoded characters.

It doesn't say anything about encoding out going..:S

 

 

EDIT:

I made it work by using the debug window and finding the sockwrites for messages, and changing

$dc.encode(%sc,$left($4-,-1)) to $dc.nencode(%sc,$left($4-,-1))

Edited May 22, 2006 9:44 PM by shanespen