Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 436536 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/common/cfgfiles.c (+2 lines)
Lines 386-391 const struct prefs vars[] = { Link Here
386
	{"completion_auto", P_OFFINT (nickcompletion), TYPE_BOOL},
386
	{"completion_auto", P_OFFINT (nickcompletion), TYPE_BOOL},
387
	{"completion_sort", P_OFFINT (completion_sort), TYPE_INT},
387
	{"completion_sort", P_OFFINT (completion_sort), TYPE_INT},
388
	{"completion_suffix", P_OFFSET (nick_suffix), TYPE_STR},
388
	{"completion_suffix", P_OFFSET (nick_suffix), TYPE_STR},
389
	
390
	{"completion_cinsens", P_OFFINT (completion_cinsens), TYPE_BOOL},
389
391
390
	{"dcc_auto_chat", P_OFFINT (autodccchat), TYPE_INT},
392
	{"dcc_auto_chat", P_OFFINT (autodccchat), TYPE_INT},
391
	{"dcc_auto_resume", P_OFFINT (autoresume), TYPE_BOOL},
393
	{"dcc_auto_resume", P_OFFINT (autoresume), TYPE_BOOL},
(-)a/src/common/util.c (-1 / +20 lines)
Lines 1350-1356 rfc_ncasecmp (char *str1, char *str2, int n) Link Here
1350
	register unsigned char *s2 = (unsigned char *) str2;
1350
	register unsigned char *s2 = (unsigned char *) str2;
1351
	register int res;
1351
	register int res;
1352
1352
1353
	while ((res = rfc_tolower (*s1) - rfc_tolower (*s2)) == 0)
1353
	while ((res = hal_casecomp(s1,s2)) == 0)
1354
	{
1354
	{
1355
		s1++;
1355
		s1++;
1356
		s2++;
1356
		s2++;
Lines 1361-1366 rfc_ncasecmp (char *str1, char *str2, int n) Link Here
1361
	return (res);
1361
	return (res);
1362
}
1362
}
1363
1363
1364
int
1365
hal_casecomp ( char *s1, char *s2)
1366
{
1367
1368
/* This function, called by rfc_ncasecmp, enables enhanced tab
1369
 * completition: It completes te<tab> to Test but not Te<tab> to
1370
 * test2. (This is useful if you have two users Test1 and test2 in
1371
 * the channel. Can be toggeled wit /set completion_cinsens (0|1)
1372
 *
1373
 *  -- Mathias Weyland <mathias@weyland.ch>, 6.9.2004
1374
*/
1375
	if((*s2 - rfc_tolower (*s2)) || prefs.completion_cinsens)
1376
	{
1377
		return (rfc_tolower (*s1) - rfc_tolower (*s2));
1378
	} else {
1379
		return (*s1 - *s2);
1380
	}
1381
}
1382
1364
const unsigned char rfc_tolowertab[] =
1383
const unsigned char rfc_tolowertab[] =
1365
	{ 0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa,
1384
	{ 0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa,
1366
	0xb, 0xc, 0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14,
1385
	0xb, 0xc, 0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14,
(-)a/src/common/util.h (+1 lines)
Lines 26-31 char *file_part (char *file); Link Here
26
void for_files (char *dirname, char *mask, void callback (char *file));
26
void for_files (char *dirname, char *mask, void callback (char *file));
27
int rfc_casecmp (const char *, const char *);
27
int rfc_casecmp (const char *, const char *);
28
int rfc_ncasecmp (char *, char *, int);
28
int rfc_ncasecmp (char *, char *, int);
29
int hal_casecomp ( char *s1, char *s2);
29
int buf_get_line (char *, char **, int *, int len);
30
int buf_get_line (char *, char **, int *, int len);
30
char *nocasestrstr (const char *text, const char *tofind);
31
char *nocasestrstr (const char *text, const char *tofind);
31
char *country (char *);
32
char *country (char *);
(-)a/src/common/xchat.h (-1 / +1 lines)
Lines 210-215 struct xchatprefs Link Here
210
	unsigned int userlistbuttons;
210
	unsigned int userlistbuttons;
211
	unsigned int showhostname_in_userlist;
211
	unsigned int showhostname_in_userlist;
212
	unsigned int nickcompletion;
212
	unsigned int nickcompletion;
213
	unsigned int completion_cinsens;
213
	unsigned int completion_amount;
214
	unsigned int completion_amount;
214
	unsigned int tabchannels;
215
	unsigned int tabchannels;
215
	unsigned int paned_userlist;
216
	unsigned int paned_userlist;
216
- 

Return to bug 436536