1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 08:36:37 +02:00

Small miscellaneous fixes, pt 3.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1671 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2008-11-14 20:03:43 +00:00
parent f25ca483fa
commit f75ebf8d0d
3 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -883,7 +883,7 @@ E void finish_sync(Server *serv, int sync_links);
E void ts6_uid_init(void);
E void ts6_uid_increment(unsigned int slot);
E char *ts6_uid_retrieve(void);
E const char *ts6_uid_retrieve(void);
/**** sessions.c ****/
+5 -7
View File
@@ -138,7 +138,7 @@ int akick_view(User * u, int index, ChannelInfo * ci, int *sent_header)
strftime_lang(timebuf, sizeof(timebuf), u,
STRFTIME_SHORT_DATE_FORMAT, &tm);
} else {
snprintf(timebuf, sizeof(timebuf), getstring(u->na, UNKNOWN));
snprintf(timebuf, sizeof(timebuf), "%s", getstring(u->na, UNKNOWN));
}
notice_lang(s_ChanServ, u,
@@ -439,7 +439,7 @@ int do_akick(User * u)
/* Special case: is it a number/list? Only do search if it isn't. */
if (isdigit(*mask) && strspn(mask, "1234567890,-") == strlen(mask)) {
int count, last = -1;
int last = -1;
deleted = process_numlist(mask, &count, akick_del_callback, u,
ci, &last);
if (!deleted) {
@@ -583,11 +583,9 @@ int do_akick(User * u)
notice_lang(s_ChanServ, u, CHAN_AKICK_NO_MATCH, chan);
} else if (stricmp(cmd, "ENFORCE") == 0) {
Channel *c = findchan(ci->name);
struct c_userlist *cu = NULL;
struct c_userlist *next;
const char *argv[3];
int count = 0;
c = findchan(ci->name);
cu = NULL;
count = 0;
if (!c) {
notice_lang(s_ChanServ, u, CHAN_X_NOT_IN_USE, ci->name);
+1 -1
View File
@@ -602,7 +602,7 @@ void ts6_uid_increment(unsigned int slot)
}
}
char *ts6_uid_retrieve(void)
const char *ts6_uid_retrieve(void)
{
if (UseTS6 == 0)
{