/BANTYPE -> /SET ban_type. /BAN: -type option added to override default

ban type.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1318 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-03 20:48:23 +00:00 committed by cras
commit 4f2be94115
9 changed files with 147 additions and 121 deletions

View file

@ -73,18 +73,14 @@ char *irc_get_mask(const char *nick, const char *address, int flags)
}
*host++ = '\0';
switch (flags & (IRC_MASK_HOST|IRC_MASK_DOMAIN)) {
case IRC_MASK_HOST:
/* we already have the host */
break;
case IRC_MASK_DOMAIN:
if (flags & IRC_MASK_HOST) {
/* we already have the host */
} else if (flags & IRC_MASK_DOMAIN) {
/* domain - *.blah.org */
host = get_domain_mask(host);
break;
default:
} else {
/* no domain/host */
host = "*";
break;
}
ret = g_strdup_printf("%s!%s@%s",