nick *target;
int hits, duration;
char *reason;
- char creator[32];
+ char creator[128];
glinebuf gbuf;
if (cargc < 3)
return CMD_ERROR;
}
- snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ if (sender->auth)
+ snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ else
+ strncpy(creator, controlid(sender), sizeof(creator));
glinebufinit(&gbuf, 1);
glinebufaddbynick(&gbuf, target, 0, creator, reason, getnettime() + duration, getnettime(), getnettime() + duration);
nick *sender = source;
int duration, users, channels;
char *mask, *reason, *pos;
- char creator[32];
+ char creator[128];
int coff, sanitychecks, operlimit;
glinebuf gbuf;
#if SNIRCD_VERSION < 140
}
#endif
- snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ if (sender->auth)
+ snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ else
+ strncpy(creator, controlid(sender), sizeof(creator));
glinebufinit(&gbuf, 1);
char *mask;
glinebuf gbuf;
int users, channels;
- char creator[32];
+ char creator[128];
if (cargc < 1)
return CMD_USAGE;
mask = cargv[0];
- snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ if (sender->auth)
+ snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ else
+ strncpy(creator, controlid(sender), sizeof(creator));
glinebufinit(&gbuf, 0);
unsigned char bits;
int hits, duration;
char *reason;
- char creator[32];
+ char creator[128];
glinebuf gbuf;
if (cargc < 3)
return CMD_ERROR;
}
- snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ if (sender->auth)
+ snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ else
+ strncpy(creator, controlid(sender), sizeof(creator));
glinebufinit(&gbuf, 1);
glinebufaddbyip(&gbuf, user, &ip, 128, 0, creator, reason, getnettime() + duration, getnettime(), getnettime() + duration);
char *reason = "Clearing channel.";
int mode, duration, i, slot, hits;
array victims;
- char creator[32];
+ char creator[128];
glinebuf gbuf;
if (cargc < 2)
(((nick **)victims.content)[slot]) = np;
}
- snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ if (sender->auth)
+ snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ else
+ strncpy(creator, controlid(sender), sizeof(creator));
glinebufinit(&gbuf, 1);
int duration, hits;
char *reason;
char mask[512];
- char creator[32];
+ char creator[128];
glinebuf gbuf;
if (cargc < 4)
return CMD_ERROR;
}
- snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ if (sender->auth)
+ snprintf(creator, sizeof(creator), "#%s", sender->authname);
+ else
+ strncpy(creator, controlid(sender), sizeof(creator));
glinebufinit(&gbuf, 0);