Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: cs_peek update?  (Read 3909 times)

0 Members and 1 Guest are viewing this topic.

gerry

  • Anope User
  • Offline Offline
  • Posts: 86
cs_peek update?
« on: April 27, 2011, 09:15:19 AM »

just a query on the cs_peek module please as to if a fix to allow a message to notify opers that the command has been used (ie in #Services or via snotice) will be considered for this module please so that there is some record of the command's usage
Logged

katlyn

  • Anope User
  • Offline Offline
  • Gender: Female
  • Posts: 7
  • i LOVE anope :)
    • Quakenet
Re: cs_peek update?
« Reply #1 on: May 07, 2011, 12:41:22 AM »

http://privatepaste.com/baf5c1337d

I assumed you wanted to log the general use of the command by staff and users, so when they (successfully) perform a peek it logs it - haven't tested, but it's just one extra line so should be no problem.
Logged

gerry

  • Anope User
  • Offline Offline
  • Posts: 86
Re: cs_peek update?
« Reply #2 on: May 08, 2011, 06:58:53 AM »

i did indeed want it logged.

i have an error report for you also when i compiled it as it failed.if you can get back to me with a fix please

Quote
cs_peek.c: In function 'chanserv_peek':
cs_peek.c:170: warning: suggest parentheses around assignment used as truth value
cs_peek.c:186: error: 'User' has no member named 'hostname'
make[1]: *** [cs_peek.o] Error 1
make[1]: Leaving directory `/home/anope/anope-1.8.5/src/modules'
make: *** [modules] Error 2
Logged

katlyn

  • Anope User
  • Offline Offline
  • Gender: Female
  • Posts: 7
  • i LOVE anope :)
    • Quakenet
Re: cs_peek update?
« Reply #3 on: May 08, 2011, 04:29:46 PM »

Oh, change u->hostname to u->host on line 186.
Logged

gerry

  • Anope User
  • Offline Offline
  • Posts: 86
Re: cs_peek update?
« Reply #4 on: May 09, 2011, 08:27:21 AM »

thank you very much :)

that works
Logged
Pages: [1]   Go Up