Page 1 of 1

commandsno (v1.14)

Posted: Wed May 31, 2006 12:14 pm
by frozen
I have loaded this module on every IRCd in my network, and when someone uses one of the commands I have specifyed in the configs I only get the notice if I am opered up on the same leaf as the person using the command. Is there a way I can make this notice global (send to all opers with +C not just opers on local IRCd)?
http://www.angrywolf.org/commandsno.tar.gz

Posted: Wed May 31, 2006 1:29 pm
by JanisB
According to
** 3.2.2 release **
- Module coders: New function: sendto_snomask_global().
Try to change

Code: Select all

		sendto_snomask(SNO_COMMAND,
			"%s (%s@%s) used command %s (params: %s)",
			sptr->name, sptr->user->username, sptr->user->realhost,
			ovr->command->cmd, mybuf);
to

Code: Select all

		sendto_snomask_global(SNO_COMMAND,
			"%s (%s@%s) used command %s (params: %s)",
			sptr->name, sptr->user->username, sptr->user->realhost,
			ovr->command->cmd, mybuf);
and recompile plugin.

Posted: Wed May 31, 2006 1:56 pm
by frozen
JanisB++;

Edit: JanisB += 10; // more like it!