mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-28 14:31:44 +01:00
A couple small tweaks to ProtocolOutput()
This commit is contained in:
1
src/db.c
1
src/db.c
@@ -3965,7 +3965,6 @@ void load_config( void )
|
|||||||
strncpy(buf, "Reading menu in load_config()", sizeof(buf));
|
strncpy(buf, "Reading menu in load_config()", sizeof(buf));
|
||||||
CONFIG_MENU = fread_string(fl, buf);
|
CONFIG_MENU = fread_string(fl, buf);
|
||||||
parse_at(CONFIG_MENU);
|
parse_at(CONFIG_MENU);
|
||||||
parse_at(CONFIG_MENU);
|
|
||||||
} else if (!str_cmp(tag, "min_rent_cost"))
|
} else if (!str_cmp(tag, "min_rent_cost"))
|
||||||
CONFIG_MIN_RENT_COST = num;
|
CONFIG_MIN_RENT_COST = num;
|
||||||
else if (!str_cmp(tag, "min_wizlist_lev"))
|
else if (!str_cmp(tag, "min_wizlist_lev"))
|
||||||
|
|||||||
@@ -547,6 +547,31 @@ const char *ProtocolOutput( descriptor_t *apDescriptor, const char *apData, int
|
|||||||
case '\t': /* Two tabs in a row will display an actual tab */
|
case '\t': /* Two tabs in a row will display an actual tab */
|
||||||
pCopyFrom = Tab;
|
pCopyFrom = Tab;
|
||||||
break;
|
break;
|
||||||
|
case '_':
|
||||||
|
pCopyFrom = "\x1B[4m"; /* Underline */
|
||||||
|
break;
|
||||||
|
case '+':
|
||||||
|
pCopyFrom = "\x1B[1m"; /* Bold */
|
||||||
|
break;
|
||||||
|
case '-':
|
||||||
|
pCopyFrom = "\x1B[5m"; /* Blinking??? */
|
||||||
|
break;
|
||||||
|
case '*':
|
||||||
|
pCopyFrom = "@"; /* The At Symbol... I don't really like this, but it seems like
|
||||||
|
a simple way to allow for the @ symbol while maintain portability
|
||||||
|
between pre-ProtocolOutput() muds and post ProtocolOutput() muds.*/
|
||||||
|
break;
|
||||||
|
/* 1,2,3 to be used a MUD's base colour palette. Just to maintain
|
||||||
|
* some sort of common colouring scheme amongst coders/builders */
|
||||||
|
case '1':
|
||||||
|
pCopyFrom = ColourRGB(apDescriptor, "F022");
|
||||||
|
break;
|
||||||
|
case '2':
|
||||||
|
pCopyFrom = ColourRGB(apDescriptor, "F055");
|
||||||
|
break;
|
||||||
|
case '3':
|
||||||
|
pCopyFrom = ColourRGB(apDescriptor, "F555");
|
||||||
|
break;
|
||||||
case 'n':
|
case 'n':
|
||||||
pCopyFrom = s_Clean;
|
pCopyFrom = s_Clean;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -1500,8 +1500,5 @@ char * convert_from_tabs(char * string)
|
|||||||
strcpy(buf, string);
|
strcpy(buf, string);
|
||||||
parse_tab(buf);
|
parse_tab(buf);
|
||||||
|
|
||||||
if (strchr(buf, '\t'))
|
|
||||||
mudlog(CMP, LVL_GOD, TRUE, "STILL TABS?! [%s]", buf);
|
|
||||||
|
|
||||||
return(buf);
|
return(buf);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user