summaryrefslogtreecommitdiff
path: root/src/core/ns_set.c
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-10-21 14:20:46 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-10-21 14:20:46 +0000
commit4e09ffe9b4de3fd005a2a35f2620dfe93e77f3cf (patch)
tree5ef82d6b2200e8319e960f718b7d89e2ea31c0f2 /src/core/ns_set.c
parent96c98e6eea470a1c68340af43879c111a0c7c1b6 (diff)
BUILD : 1.7.12 (914) BUGS : NOTES : Anope 1.7.12-rc1 stuffs
git-svn-id: svn://svn.anope.org/anope/trunk@914 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@660 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ns_set.c')
-rw-r--r--src/core/ns_set.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/core/ns_set.c b/src/core/ns_set.c
index 8ae5446d6..ce557b79b 100644
--- a/src/core/ns_set.c
+++ b/src/core/ns_set.c
@@ -113,13 +113,13 @@ int do_set(User * u)
{
char *cmd = strtok(NULL, " ");
char *param = strtok(NULL, " ");
- NickAlias *na = u->na;
-
+ NickAlias *na = u->na;
+
if (readonly) {
notice_lang(s_NickServ, u, NICK_SET_DISABLED);
return MOD_CONT;
}
-
+
if (!param
&& (!cmd
|| (stricmp(cmd, "URL") != 0 && stricmp(cmd, "EMAIL") != 0
@@ -197,8 +197,7 @@ int do_set_password(User * u, NickCore * nc, char *param)
{
int len = strlen(param);
- if (stricmp(nc->display, param) == 0
- || (StrictPasswords && len < 5)) {
+ if (stricmp(nc->display, param) == 0 || (StrictPasswords && len < 5)) {
notice_lang(s_NickServ, u, MORE_OBSCURE_PASSWORD);
return MOD_CONT;
}
@@ -225,8 +224,7 @@ int do_set_password(User * u, NickCore * nc, char *param)
#endif
alog("%s: %s!%s@%s (e-mail: %s) changed its password.", s_NickServ,
- u->nick, u->username, u->host,
- (nc->email ? nc->email : "none"));
+ u->nick, u->username, u->host, (nc->email ? nc->email : "none"));
return MOD_CONT;
}
@@ -277,8 +275,8 @@ int do_set_email(User * u, NickCore * nc, char *param)
}
alog("%s: %s!%s@%s (e-mail: %s) changed its e-mail to %s.",
- s_NickServ, u->nick, u->username, u->host,
- (nc->email ? nc->email : "none"), (param ? param : "none"));
+ s_NickServ, u->nick, u->username, u->host,
+ (nc->email ? nc->email : "none"), (param ? param : "none"));
if (nc->email)
free(nc->email);