diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-04-25 19:57:23 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-04-25 19:57:23 +0200 |
commit | 3edaed94d464210dd64e0d337a95287e3f12bb2d (patch) | |
tree | 6c55361d3b0a0a5447886326ae46d8ea48506187 /root_commands.c | |
parent | 85616c361bf152a10f774ad65068103d0724e42b (diff) | |
parent | 79c6f9f8fff2b4c4627353e8a8eeb591d99a2098 (diff) |
Misc. things (mainly code cleanup, better quoting for root commands)
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c index 0b5f4da5..6d9868ac 100644 --- a/root_commands.c +++ b/root_commands.c @@ -57,6 +57,13 @@ void root_command_string( irc_t *irc, user_t *u, char *command, int flags ) s --; } } + else if( *s == '\\' && ( ( !q && s[1] ) || ( q && q == s[1] ) ) ) + { + char *cpy; + + for( cpy = s; *cpy; cpy ++ ) + cpy[0] = cpy[1]; + } else if( *s == q ) { q = *s = 0; |