summaryrefslogtreecommitdiff
path: root/src/botserv.c
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 02:24:39 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 02:24:39 +0000
commit2726877999b4660ca318b4e98ba2e60caeff3974 (patch)
tree38ffd1707c1ed5d2d3b8c272ef85dfaaf577f22b /src/botserv.c
parenta02f8503e75eb4bb03c79a8d4c4e93a825302fff (diff)
Merge branch 'anopeng' into anopeng-config
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1420 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/botserv.c')
-rw-r--r--src/botserv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/botserv.c b/src/botserv.c
index 9f05ec9b3..b1507b2e8 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -90,7 +90,7 @@ void botserv(User * u, char *buf)
return;
} else if (stricmp(cmd, "\1PING") == 0) {
if (!(s = strtok(NULL, ""))) {
- s = "";
+ *s = 0;
}
ircdproto->SendCTCP(findbot(s_BotServ), u->nick, "PING %s", s);
} else {
@@ -113,7 +113,7 @@ void botmsgs(User * u, BotInfo * bi, char *buf)
if (!stricmp(cmd, "\1PING")) {
if (!(s = strtok(NULL, ""))) {
- s = "";
+ *s = 0;
}
ircdproto->SendCTCP(bi, u->nick, "PING %s", s);
}
@@ -745,7 +745,7 @@ void bot_join(ChannelInfo * ci)
/* Should we be invited? */
if ((ci->c->mode & anope_get_invite_mode())
- || (ci->c->limit && ci->c->usercount >= ci->c->limit))
+ || (ci->c->limit && (unsigned int)ci->c->usercount >= ci->c->limit))
ircdproto->SendNoticeChanops(NULL, ci->c->name,
"%s invited %s into the channel.",
ci->bi->nick, ci->bi->nick);