mirror of
https://github.com/anope/anope.git
synced 2026-07-03 07:53:14 +02:00
Applied Trystans patch for bug: 448
git-svn-id: svn://svn.anope.org/anope/trunk@970 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@695 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
755f87ec42
commit
1ee02bdfb5
+14
-2
@@ -977,10 +977,16 @@ int is_excepted_mask(ChannelInfo * ci, char *mask)
|
||||
|
||||
int match_usermask(const char *mask, User * user)
|
||||
{
|
||||
char *mask2 = sstrdup(mask);
|
||||
char *mask2;
|
||||
char *nick, *username, *host;
|
||||
int result;
|
||||
|
||||
if (!mask || !*mask) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
mask2 = sstrdup(mask);
|
||||
|
||||
if (strchr(mask2, '!')) {
|
||||
nick = strtok(mask2, "!");
|
||||
username = strtok(NULL, "@");
|
||||
@@ -1016,10 +1022,16 @@ int match_usermask(const char *mask, User * user)
|
||||
|
||||
int match_userip(const char *mask, User * user, char *iphost)
|
||||
{
|
||||
char *mask2 = sstrdup(mask);
|
||||
char *mask2;
|
||||
char *nick, *username, *host;
|
||||
int result;
|
||||
|
||||
if (!mask || !*mask) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
mask2 = sstrdup(mask);
|
||||
|
||||
if (strchr(mask2, '!')) {
|
||||
nick = strtok(mask2, "!");
|
||||
username = strtok(NULL, "@");
|
||||
|
||||
Reference in New Issue
Block a user