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.

Banner Script

Old posts that have not been replied to for several years.
Locked
User avatar
Moose
Voice
Posts: 37
Joined: Mon Aug 18, 2003 2:54 am
Location: Northamption, UK
Contact:

Banner Script

Post by Moose »

I got this script of the stormbot script but i cant seem to make it work any idaeas on how to make it work.

### banner proc
proc call_banner {nick misc1end} {
global botnick
if {$misc1end == ""} {
notice $nick "Usage: $botnick banner <message> or $botnick broadcast <message>"
return 0
}
foreach bchan [channels] {
msg $bchan "Global Message from $nick: $misc1end"
}
return 0
}

bind pub o|o !clan call_banner
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Moose wrote:[snip]
foreach bchan [channels] {
msg $bchan "Global Message from $nick: $misc1end"
[snip]
should be:

Code: Select all

foreach bchan [channels] { 
putserv "PRIVMSG $bchan "Global Message from $nick: $misc1end"
T
TsT
Voice
Posts: 16
Joined: Tue Mar 04, 2003 11:03 am
Location: Strasbourg, France
Contact:

Post by TsT »

putserv "PRIVMSG $bchan "Global Message from $nick: $misc1end"
should be:

Code: Select all

putserv "PRIVMSG $bchan :Global Message from $nick: $misc1end"
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

oh yeah ur right :P

I always do such mistakes, sorry :)
Locked