summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/botserv.c3
-rw-r--r--src/channels.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/botserv.c b/src/botserv.c
index ae02dfd42..1b6f98eb0 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -776,7 +776,8 @@ void bot_join(ChannelInfo * ci)
av[1] = sstrdup("-b");
for (i = 0; i < count; i++) {
if (match_wild_nocase(ci->c->bans[i], botmask)) {
- anope_cmd_mode(ci->bi->nick, ci->name, "%s", bans[i]);
+ anope_cmd_mode(ci->bi->nick, ci->name, "-b %s",
+ bans[i]);
av[2] = sstrdup(bans[i]);
do_cmode(ci->bi->nick, 3, av);
free(av[2]);
diff --git a/src/channels.c b/src/channels.c
index 7df6c2089..3d7f8487f 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -525,8 +525,6 @@ void do_join(const char *source, int ac, char **av)
t = s + strcspn(s, ",");
if (*t)
*t++ = 0;
- if (debug)
- alog("debug: %s joins %s", source, s);
if (*s == '0') {
c = user->chans;