res = mysql_use();
if ((row = mysql_fetch_row(res)) != NULL) {
putsock(client, "MODE %s +b %s", chanuser->chan->name, ban);
- putsock(client, "KICK %s %s :(%s) %s", chanuser->chan->name, chanuser->user->nick, row[1], row[0]);
+ putsock(client, "KICK %s %s :(%s) %s", chanuser->chan->name, chanuser->user->nick, (row[1] ? row[1] : client->user->nick), row[0]);
return;
}
}