mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
/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:
parent
25a013e4c8
commit
4f2be94115
9 changed files with 147 additions and 121 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue