mirror of
https://github.com/anope/anope.git
synced 2026-06-27 00:56:38 +02:00
Properly initialized new objects when needed so they don't contain garbage data.
Also, converted line endings in os_ignore_db from CR+LF to LF. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1784 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-2
@@ -58,8 +58,7 @@ void add_ignore(const char *nick, time_t delta)
|
||||
snprintf(tmp, sizeof(tmp), "*!%s", nick);
|
||||
mask = sstrdup(tmp);
|
||||
}
|
||||
|
||||
/* We only got a nick.. */
|
||||
/* We only got a nick.. */
|
||||
} else {
|
||||
snprintf(tmp, sizeof(tmp), "%s!*@*", nick);
|
||||
mask = sstrdup(tmp);
|
||||
|
||||
Reference in New Issue
Block a user