Difference between revisions of "TclScripts/HomepageUpdater"

From s23
Jump to navigation Jump to search
Line 27: Line 27:
[http://www.jywy.com OA]
[http://www.jywy.com OA软件]
[http://www.jywy.com 金和软件]
[http://www.jywy.com 客户管�?�]
[http://www.jywy.com OA办公]
[http://www.jywy.com 人力资�?管�?�]
[http://www.jywy.com 客户关系管�?�]

Latest revision as of 06:59, 26 July 2005


#S23 Homepage Updater - by mutante 18.Oct.2003
bind pubm - "*!update*" update
putlog "s23 hp updater loaded"

proc update {nick host handle chan text} {
set file /home/antisect/public_html/update.txt
set fs [open /home/antisect/public_html/update.txt a+]
set news [lrange $text 1 end]
if {[string match "*http*" $news]} {
set news "<a href='$news'>$news</a>"
} else {
set news $news
set ctime [clock format [clock seconds]]
puts $fs "$news - added by $nick on $ctime"
putserv "PRIVMSG mutante :Updater used by $nick on $ctime - message $news"
putserv "PRIVMSG $nick :523 - I added your message to http://s23.org/~antisect/ircnews.php"
close $fs
return 0