irctk

libircclient binding for scripts
git clone https://a3nm.net/git/irctk/
Log | Files | Refs | README

commit 90bd4869e60a141ba141c9e981c73355ff192a6e
parent e2d46daa185eabd82f46ad0b1b8d61e9d2f86044
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 20 Jul 2012 23:57:49 +0200

remove -D (use [] at beginning of line to escape)

Diffstat:
irctk.c | 10+---------
1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/irctk.c b/irctk.c @@ -136,9 +136,6 @@ static struct argp_option options[] = { "Also display messages posted by self", DISPLAY_SELECTION}, - {"no-destination-prefix", 'D', 0, 0, - "Don't look for []", - PARSING}, {"event-to-nothing", 'n', 0, 0, "Ignore server events (default).", PARSING}, @@ -190,7 +187,6 @@ struct arguments enum default_destinations default_destination; int show_inferred; - int destination_prefix; int with_host; int own; @@ -241,7 +237,6 @@ void initialize_args() args.default_destination = DEFAULT_LAST_IN; args.show_inferred = 0; - args.destination_prefix = 1; args.with_host = 0; args.own = 0; @@ -368,9 +363,6 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state) case 'P': arguments->show_inferred = 1; break; - case 'D': - arguments->destination_prefix = 0; - break; case 'N': arguments->force_nick = 1; break; @@ -1617,7 +1609,7 @@ static void* fifo_in_thread (void *arg) { while ((res = getline(&line, (size_t*) &size, stdin)) != -1) { debug("[thread_in] READS %s", line); debug("someone will have to free %p", line); - if (line[0] == '[' && args.destination_prefix) { + if (line[0] == '[') { int i=0; char *msg; char *target = line+1;