struct Client *target_p;
char nick[NICKLEN];
- if (strlen(client_p->id) == 3)
+ if (strlen(client_p->id) == 3 || (source_p->preClient && !EmptyString(source_p->preClient->id)))
{
exit_client(client_p, client_p, client_p, "Mixing client and server protocol");
return;
struct Channel *chptr;
char note[NICKLEN + 10];
int samenick;
- hook_data hook_info;
+ hook_cdata hook_info;
if (dosend)
{
source_p->localClient->last_nick_change = rb_current_time();
source_p->localClient->number_of_nick_changes++;
- if(ConfigFileEntry.anti_nick_flood && !IsOper(source_p) &&
+ if(ConfigFileEntry.anti_nick_flood && !IsOperGeneral(source_p) &&
source_p->localClient->number_of_nick_changes > ConfigFileEntry.max_nick_changes)
{
sendto_one(source_p, form_str(ERR_NICKTOOFAST),
{
struct nd_entry *nd;
int samenick = irccmp(source_p->name, nick) ? 0 : 1;
- hook_data hook_info;
+ hook_cdata hook_info;
/* client changing their nick - dont reset ts if its same */
if(!samenick)