X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Firssi%2Fsrc%2Ffe-common%2Fcore%2Ffe-ignore.c;fp=apps%2Firssi%2Fsrc%2Ffe-common%2Fcore%2Ffe-ignore.c;h=7c23ad9499c2ac24406dc89f1a905c84aa1e81cf;hb=18d69a0a1fec438e241bb4f431506ed59a34066b;hp=d2f48f20d0e520e6dcc931bd58f2246cd02dec16;hpb=f7be6adec0248118cddde9b04522c13cd90568cd;p=silc.git diff --git a/apps/irssi/src/fe-common/core/fe-ignore.c b/apps/irssi/src/fe-common/core/fe-ignore.c index d2f48f20..7c23ad94 100644 --- a/apps/irssi/src/fe-common/core/fe-ignore.c +++ b/apps/irssi/src/fe-common/core/fe-ignore.c @@ -13,9 +13,9 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "module.h" @@ -64,9 +64,9 @@ static void ignore_print(int index, IGNORE_REC *rec) if (rec->fullword) g_string_append(options, "-full "); if (rec->replies) g_string_append(options, "-replies "); if (rec->servertag != NULL) - g_string_sprintfa(options, "-network %s ", rec->servertag); + g_string_append_printf(options, "-network %s ", rec->servertag); if (rec->pattern != NULL) - g_string_sprintfa(options, "-pattern %s ", rec->pattern); + g_string_append_printf(options, "-pattern %s ", rec->pattern); if (options->len > 1) g_string_truncate(options, options->len-1); @@ -152,9 +152,9 @@ static void cmd_ignore(const char *data) mask = NULL; } channels = (chanarg == NULL || *chanarg == '\0') ? NULL : - g_strsplit(replace_chars(chanarg, ',', ' '), " ", -1); + g_strsplit(chanarg, ",", -1); - rec = patternarg != NULL ? NULL: ignore_find(NULL, mask, channels); + rec = patternarg != NULL ? NULL: ignore_find(servertag, mask, channels); new_ignore = rec == NULL; if (rec == NULL) {