|
@@ -634,7 +634,7 @@ static void cmd_newpass(struct userrec *u, int idx, char *par)
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
set_user(&USERENTRY_PASS, u, pass);
|
|
set_user(&USERENTRY_PASS, u, pass);
|
|
|
- dprintf(idx, "Changed password to '%s'.\n", pass);
|
|
|
|
|
|
|
+ dprintf(idx, "Changed your password to: %s.\n", pass);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static void cmd_secpass(struct userrec *u, int idx, char *par)
|
|
static void cmd_secpass(struct userrec *u, int idx, char *par)
|
|
@@ -661,8 +661,9 @@ static void cmd_secpass(struct userrec *u, int idx, char *par)
|
|
|
if (strlen(pass) > 16)
|
|
if (strlen(pass) > 16)
|
|
|
pass[16] = 0;
|
|
pass[16] = 0;
|
|
|
set_user(&USERENTRY_SECPASS, u, pass);
|
|
set_user(&USERENTRY_SECPASS, u, pass);
|
|
|
- dprintf(idx, "Changed secpass to '%s'.\n", pass);
|
|
|
|
|
|
|
+ dprintf(idx, "Changed your secpass to: %s.\n", pass);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
#ifdef HUB
|
|
#ifdef HUB
|
|
|
static void cmd_bots(struct userrec *u, int idx, char *par)
|
|
static void cmd_bots(struct userrec *u, int idx, char *par)
|
|
|
{
|
|
{
|
|
@@ -695,7 +696,8 @@ static void cmd_downbots(struct userrec *u, int idx, char *par)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (work[0])
|
|
if (work[0])
|
|
|
- dprintf(idx, STR("Down bots (%d): %s\n"), tot, work);
|
|
|
|
|
|
|
+ dprintf(idx, STR("Down bots: %s\n"), work);
|
|
|
|
|
+ dprintf(idx, STR("Total down: %d\n", tot);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -704,14 +706,14 @@ static void cmd_bottree(struct userrec *u, int idx, char *par)
|
|
|
putlog(LOG_CMDS, "*", "#%s# bottree", dcc[idx].nick);
|
|
putlog(LOG_CMDS, "*", "#%s# bottree", dcc[idx].nick);
|
|
|
tell_bottree(idx, 0);
|
|
tell_bottree(idx, 0);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
static void cmd_vbottree(struct userrec *u, int idx, char *par)
|
|
static void cmd_vbottree(struct userrec *u, int idx, char *par)
|
|
|
{
|
|
{
|
|
|
putlog(LOG_CMDS, "*", "#%s# vbottree", dcc[idx].nick);
|
|
putlog(LOG_CMDS, "*", "#%s# vbottree", dcc[idx].nick);
|
|
|
tell_bottree(idx, 1);
|
|
tell_bottree(idx, 1);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#endif
|
|
|
|
|
-
|
|
|
|
|
|
|
+#endif /* HUB */
|
|
|
|
|
|
|
|
int my_cmp (const mycmds *c1, const mycmds *c2)
|
|
int my_cmp (const mycmds *c1, const mycmds *c2)
|
|
|
{
|
|
{
|
|
@@ -1379,7 +1381,7 @@ static void cmd_chpass(struct userrec *u, int idx, char *par)
|
|
|
set_user(&USERENTRY_PASS, u, pass);
|
|
set_user(&USERENTRY_PASS, u, pass);
|
|
|
putlog(LOG_CMDS, "*", "#%s# chpass %s [something]", dcc[idx].nick,
|
|
putlog(LOG_CMDS, "*", "#%s# chpass %s [something]", dcc[idx].nick,
|
|
|
handle);
|
|
handle);
|
|
|
- dprintf(idx, "%s password changed to: %s\n", handle, pass);
|
|
|
|
|
|
|
+ dprintf(idx, "Password for '%s' changed to: %s\n", handle, pass);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1408,7 +1410,7 @@ static void cmd_chsecpass(struct userrec *u, int idx, char *par)
|
|
|
else if (!par[0]) {
|
|
else if (!par[0]) {
|
|
|
putlog(LOG_CMDS, "*", "#%s# chsecpass %s [nothing]", dcc[idx].nick,
|
|
putlog(LOG_CMDS, "*", "#%s# chsecpass %s [nothing]", dcc[idx].nick,
|
|
|
handle);
|
|
handle);
|
|
|
- set_user(&USERENTRY_PASS, u, NULL);
|
|
|
|
|
|
|
+ set_user(&USERENTRY_SECPASS, u, NULL);
|
|
|
dprintf(idx, "Removed secpass.\n");
|
|
dprintf(idx, "Removed secpass.\n");
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
|
@@ -1430,6 +1432,7 @@ static void cmd_chsecpass(struct userrec *u, int idx, char *par)
|
|
|
set_user(&USERENTRY_SECPASS, u, pass);
|
|
set_user(&USERENTRY_SECPASS, u, pass);
|
|
|
putlog(LOG_CMDS, "*", "#%s# chsecpass %s [something]", dcc[idx].nick,
|
|
putlog(LOG_CMDS, "*", "#%s# chsecpass %s [something]", dcc[idx].nick,
|
|
|
handle);
|
|
handle);
|
|
|
|
|
+ dprintf(idx, "Secpass for '%s' changed to: %s\n", handle, pass);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|