Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
shamp
Newbie


Joined: 01 Jan 2008
Posts: 2

PostPosted: Sat Jul 05, 2008 6:28 pm   

How to disable mailto: and http link parsing?
 
Hi, I'm already at wits end here right now. I don't really know where did this came from but right now cmud is parsing map in my mud into mailto addresses that are total gibberish. I've been trying to disable everything I can think of (MXP/HTML for example) but nothing seem to help.

Code:

     ?mme       You are walking in a field of thick snow. You are not
    mm.m  m     certain what lies beneath the snow, except that there is
   mm.mmem.     not much growing here now. Nothing in the area would
  MmMM....      provide cover, except the trees you can barely spot in
  mMmmm.me      the far distance. The howling wind bites your face, and
  mmMm@.me      you think that if you stop even for a moment, you will
  Mmmmm?me      surely freeze to death.  A steady snow is falling.
  MMmmmmme      There is quite a lot of snow on the ground, on which you
   -------      notice some tracks.
  Mmmmmmmee   
    mmmmm     
        The obvious exits are north, south, southeast, northwest, southwest, west, northeast and east.


This is what I'm looking at normally, but when I move a bit to northwest I'll be seeing this

Code:


                You are walking in a field of thick snow. You are not
    mm?mmem     certain what lies beneath the snow, except that there is
   mmmm.mm      not much growing here now. Nothing in the area would
  MMmm.mmem.    provide cover, except the trees you can barely spot in
  mMmMM....m    the far distance. The howling wind bites your face, and
  <A 'mailto:MmMm@m.me'>MmMm@m.me</A>     you think that if you stop even for a moment, you will
  MmmMmm.me     surely freeze to death.  A steady snow is falling.
  mMmmmm?me     There is quite a lot of snow on the ground, on which you
   MMmmmmme     notice some tracks.
    -------   
    mmmmm   


Right now I have everything disabled in MXP/HTML options and pretty much everything I don't have a clue about in everywhere else too.

Also when I write for example "say www somepage.com" it gives me

Code:

You say: <A 'www.somepage.com'>www.somepage.com</A>.


Which is really annoying in my opinion and I would like to disable this 'feature' also.

I've been trying to search forums but because I have absolutely no Idea what I'm dealing with here I found it to be quite impossible.

Thanks in advance.
Reply with quote
wrym
Magician


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: Sat Jul 05, 2008 6:49 pm   
 
I believe what you are looking for is the clickableurls package. That package is loaded by default and has a trigger to make certain web links clickable, you can eiter delete it or disable it and you'll no longer beable to click on them. Not sure why you want to disable webpage clickables, I use that all the time, no more <ctrl +c> <alt+tab> <ctrl +v> to see a link from a friend
Reply with quote
Nicodareus
Wanderer


Joined: 24 Jun 2008
Posts: 68
Location: Texas

PostPosted: Sat Jul 05, 2008 6:51 pm   
 
The problem here is that the MUD you are playing is sending the MXP codes. Not CMud. CMud does -not- automatically convert anything to links. Disabling MXP/etc just makes it so that MXP no longer expands the tags and you end up seeing output like what you have above instead of having them converted to links. If the MUD you are playing has any commands/options to turn MXP off, that is the proper way to do so. (Usually you'd just type 'mxp off') If your MUD does -not- have this option or some sort of 'HTML' options or something like that, you may want to talk to the administrators about it. A MUD should never try to force MXP tags down their players throats, because not all players are using MXP enabled clients and even those that are may not have MXP turned on.
_________________
Email: nikodareus@gmail.com

or

avonarys@gmail.com
Reply with quote
Nicodareus
Wanderer


Joined: 24 Jun 2008
Posts: 68
Location: Texas

PostPosted: Sat Jul 05, 2008 6:53 pm   
 
I didn't realize there was any such package for that kind of auto-conversion. Interesting. I don't seem to have it anywhere. Well, try what wyrm suggests first, then..

Edit: Ah yes... I'm an idiot.. There it is.. I guess i've just never dug that deep before.. You want to go to your Package Editor (View->All settings) and somewhere up top you ought to see All, Clickable URLs and 'yourmudname' Pick the Clickable URLs tab, and then right click the Clickable URLs module and disable it by unchecking 'Enabled'

Now my own question. Is there any way to remove this package for all sessions created by default in the future? I'm sure some people find this a nice option, but I personally hate it and don't like the idea of any clickable links that come up that weren't created by me or the MUD server. I believe I may have done that by removing Clickable URLs from the General options->scripting->packages and then choosing 'Save as Default', but I'm not 100% sure. Yet.

Edit 2: Yep, that took care of my problem. No more clickable URLs for new sessions. Hoorah.
Reply with quote
shamp
Newbie


Joined: 01 Jan 2008
Posts: 2

PostPosted: Sat Jul 05, 2008 7:06 pm   
 
Thank you very much for prompt answers.
It was indeed this new clickableurl package. Didn't notice that new one.

Thanks again.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Sat Jul 05, 2008 7:14 pm   
 
Its new, added by default to new sessions, old exsisting sessions need to manually add it in though.
_________________
Discord: Shalimarwildcat
Reply with quote
Nicodareus
Wanderer


Joined: 24 Jun 2008
Posts: 68
Location: Texas

PostPosted: Sat Jul 05, 2008 7:48 pm   
 
Ah, yeah. I kinda figured that to a point but didn't really equate that to why it wasn't in any of my sessions before. When 2.30 came out I had to do a complete reinstall and manually recreate my sessions and put what I wanted back into them, so now it's there on all of them. I was kinda wondering how they just suddenly happened to have the Clickable URLs packages in them when they weren't there before. But that's alright, it's not in any of them anymore.
_________________
Email: nikodareus@gmail.com

or

avonarys@gmail.com
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jul 07, 2008 7:53 pm   
 
Your example raises an interesting point too...With that kind of inline map using the @ character, it's always going to be possible for it to look like a valid email address (even though in your example it wasn't a valid email address). So even if I somehow improved the email regular expression pattern to not match your original example, I could see map positions where it would look valid.

I know that several MUDs use the @ character to represent the current position on an ascii map, so I'll need to reconsider this feature in the Clickable URL package.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net