sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 38d3f3c17d6442d1944aa43935035ef64dedec19
parent b46c752426f1e6f35e6aefea54ff5ce89558d0cc
Author: Alexis Ben Miloud--Josselin <alexis.bmj@protonmail.com>
Date:   Sat, 26 May 2018 23:21:11 +0200

[sic][PATCH] Do not set default chan when joinning.

Diffstat:
tools.suckless.org/sic/patches/nodefaultchan.md | 15+++++++++++++++
tools.suckless.org/sic/patches/sic-nodefaultchan-20180524-9bb34de.diff | 25+++++++++++++++++++++++++
2 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/tools.suckless.org/sic/patches/nodefaultchan.md b/tools.suckless.org/sic/patches/nodefaultchan.md @@ -0,0 +1,15 @@ +No default chan +=============== +This patch will prevent `sic` from setting the first chan you want to +join as the default one. You will have to manually set a default chan +with the `j` command if you want one. + + +Download +-------- +* [sic-nodefaultchan-20180524-9bb34de.diff](sic-nodefaultchan-20180524-9bb34de.diff) (582) (20180524) + + +Author +------ +* Alexis Ben Miloud--Josselin <[alexis.bmj@protonmail.com](mailto:alexis.bmj@protonmail.com)> diff --git a/tools.suckless.org/sic/patches/sic-nodefaultchan-20180524-9bb34de.diff b/tools.suckless.org/sic/patches/sic-nodefaultchan-20180524-9bb34de.diff @@ -0,0 +1,25 @@ +From 9858964ec2b1eeffe9e112cc8a6272efdc3ea8c3 Mon Sep 17 00:00:00 2001 +From: Alexis Ben Miloud--Josselin <alexis.bmj@protonmail.com> +Date: Thu, 24 May 2018 10:52:00 +0200 +Subject: [PATCH] Do not set default chan when joinning + +--- + sic.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/sic.c b/sic.c +index ecefaf2..b7efd7e 100644 +--- a/sic.c ++++ b/sic.c +@@ -77,8 +77,6 @@ parsein(char *s) { + switch(c) { + case 'j': + sout("JOIN %s", p); +- if(channel[0] == '\0') +- strlcpy(channel, p, sizeof channel); + return; + case 'l': + s = eat(p, isspace, 1); +-- +2.11.0 +