… | |
… | |
216 | now = time (NULL); |
216 | now = time (NULL); |
217 | /* |
217 | /* |
218 | * Record this as a comment - then we don't have to worry about changing |
218 | * Record this as a comment - then we don't have to worry about changing |
219 | * the parsing code. |
219 | * the parsing code. |
220 | */ |
220 | */ |
221 | fprintf (banishfile, "# %s (%s) banned by %s at %s\n", &pl->ob->name, pl->socket.host, &op->name, ctime (&now)); |
221 | fprintf (banishfile, "# %s (%s) banned by %s at %s\n", &pl->ob->name, pl->socket->host, &op->name, ctime (&now)); |
222 | fprintf (banishfile, "*@%s\n", pl->socket.host); |
222 | fprintf (banishfile, "*@%s\n", pl->socket->host); |
223 | fclose (banishfile); |
223 | fclose (banishfile); |
224 | |
224 | |
225 | LOG (llevDebug, "! %s banned %s from IP: %s.\n", &op->name, &pl->ob->name, pl->socket.host); |
225 | LOG (llevDebug, "! %s banned %s from IP: %s.\n", &op->name, &pl->ob->name, pl->socket->host); |
226 | new_draw_info_format (NDI_UNIQUE | NDI_RED, 0, op, "You banish %s", &pl->ob->name); |
226 | new_draw_info_format (NDI_UNIQUE | NDI_RED, 0, op, "You banish %s", &pl->ob->name); |
227 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op, "%s banishes %s from the land!", &op->name, &pl->ob->name); |
227 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op, "%s banishes %s from the land!", &op->name, &pl->ob->name); |
228 | command_kick (op, (char *) &pl->ob->name); |
228 | command_kick (op, (char *) &pl->ob->name); |
229 | return 1; |
229 | return 1; |
230 | } |
230 | } |
… | |
… | |
241 | { |
241 | { |
242 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op, "%s is kicked out of the game.", &op->name); |
242 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_RED, 5, op, "%s is kicked out of the game.", &op->name); |
243 | strcpy (op->contr->killer, "kicked"); |
243 | strcpy (op->contr->killer, "kicked"); |
244 | } |
244 | } |
245 | |
245 | |
246 | pl->socket.status = Ns_Dead; |
246 | pl->socket->status = Ns_Dead; |
247 | } |
247 | } |
248 | |
248 | |
249 | return 1; |
249 | return 1; |
250 | } |
250 | } |
251 | |
251 | |
… | |
… | |
1385 | { |
1385 | { |
1386 | new_draw_info (NDI_UNIQUE, 0, op, "You are already the Dungeon Master!"); |
1386 | new_draw_info (NDI_UNIQUE, 0, op, "You are already the Dungeon Master!"); |
1387 | return 0; |
1387 | return 0; |
1388 | } |
1388 | } |
1389 | |
1389 | |
1390 | if (checkdm (op, op->name, (params ? params : "*"), op->contr->socket.host)) |
1390 | if (checkdm (op, op->name, (params ? params : "*"), op->contr->socket->host)) |
1391 | { |
1391 | { |
1392 | SET_FLAG (op, FLAG_WIZ); |
1392 | SET_FLAG (op, FLAG_WIZ); |
1393 | SET_FLAG (op, FLAG_WAS_WIZ); |
1393 | SET_FLAG (op, FLAG_WAS_WIZ); |
1394 | SET_FLAG (op, FLAG_WIZPASS); |
1394 | SET_FLAG (op, FLAG_WIZPASS); |
1395 | SET_FLAG (op, FLAG_WIZCAST); |
1395 | SET_FLAG (op, FLAG_WIZCAST); |