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.

Channel notices

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Hi! When someone do a channel notice, eggy will write that line(s) in a file. Any sugestions for doing this?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

set noticefile "/home/user/eggdrop/notices"
bind notc - "*" file:notc
proc file:notc {nick uh hand arg {dest ""}} {
global noticefile
if {[validchan $dest]} {
set fp [open $noticefile a]
puts $fp "$arg"
close $fp
}
}
Locked