mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-22 00:46:09 +01:00
Added protocols,lists and events, and fixed some bugs... refer to changelog.
This commit is contained in:
parent
6dadf24c51
commit
dd280c1b58
22 changed files with 419 additions and 89 deletions
18
src/modify.c
18
src/modify.c
|
|
@ -75,6 +75,24 @@ void smash_tilde(char *str)
|
|||
*p=' ';
|
||||
}
|
||||
|
||||
/* Parse out the @ character and replace it with the '\t' to work with
|
||||
* KaVir's protocol snippet */
|
||||
void parse_at(char *str)
|
||||
{
|
||||
char *p = str;
|
||||
for (; *p; p++)
|
||||
if (*p == '@')
|
||||
*p = '\t';
|
||||
}
|
||||
|
||||
void parse_tab(char *str)
|
||||
{
|
||||
char *p = str;
|
||||
for (; *p; p++)
|
||||
if (*p == '\t')
|
||||
*p = '@';
|
||||
}
|
||||
|
||||
/* Basic API function to start writing somewhere. 'data' isn't used, but you
|
||||
* can use it to pass whatever else you may want through it. The improved
|
||||
* editor patch when updated could use it to pass the old text buffer, for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue