This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

to make all notices from #channel be logged?

Old posts that have not been replied to for several years.
Locked
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

to make all notices from #channel be logged?

Post by Doom »

to make all notices from #channel be logged and then save them in some file as channelnotices .. ??
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind notc - * my:notice

proc my:notice {nick uhost hand text dest} {
  if {[isbotnick $dest] || ![string equal -nocase "#channel" $dest]} { 
    return
  }
  set f [open notices.txt a]
  puts $f $text
  close $f
}
Once the game is over, the king and the pawn go back in the same box.
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

Post by Doom »

caesar wrote:

Code: Select all

bind notc - * my:notice

proc my:notice {nick uhost hand text dest} {
  if {[isbotnick $dest] || ![string equal -nocase "#channel" $dest]} { 
    return
  }
  set f [open notices.txt a]
  puts $f $text
  close $f
}
this worx if someone /notice #channel...but i want it to log every /chanserv notice also...i.e
[21:58:34] -ChanServ:@#chann- [VERBOSE] hi@fbx.net => unban #chan*!*@*aj*
and when someone removes/adds aop...etc..
and it would be good if it showed the nick who Noticed chan..
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

add return 1 on the bottom

so hmm why don't u just bind to raw and then log every notice add return 1 on the bottom cause from what i understand this script only logs channel notices as you requested ..?
XplaiN but think of me as stupid
D
Doom
Voice
Posts: 34
Joined: Fri Jun 20, 2003 9:33 am

Post by Doom »

Ofloo wrote:add return 1 on the bottom

so hmm why don't u just bind to raw and then log every notice add return 1 on the bottom cause from what i understand this script only logs channel notices as you requested ..?
ok sorry then..i meant notices that have with channel to do..
Locked