-#ifdef OPATH
- if (IsServer(sptr))
- write_log(OPATH, TIME_T_FMT " %s CLEARMODE %s %s\n", TStime(), sptr->name,
- chptr->chname, control_buf);
- else
- write_log(OPATH, TIME_T_FMT " %s!%s@%s CLEARMODE %s %s\n", TStime(),
- sptr->name, sptr->user->username, sptr->user->host,
- chptr->chname, control_buf);
-#endif
+ /* Log it... */
+ log_write(LS_OPERMODE, L_INFO, LOG_NOSNOTICE, "%#C CLEARMODE %H %s", sptr,
+ chptr, control_buf);