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.

help with a line of my code

Old posts that have not been replied to for several years.
Locked
m
m0de
Voice
Posts: 12
Joined: Mon Jun 09, 2003 11:33 am

help with a line of my code

Post by m0de »

ok first off heres the script:

Code: Select all

set tr "." 
set cc "." 

set nopub "#exz" 

bind pub m|m ${tr}setwebsite setweb 
bind pub -|- ${tr}Website Web 

proc setweb {nick host hand chan arg} { 
global url pathqstat cc nopub Website 
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0} 
if {$arg == ""} { 
putserv "PRIVMSG $chan :Usage: ${cc}setwebsite <^BIP Address^B>" 
return 0 
} 
#set Website "0,1*8eXistenZ0*0,1  $arg 0,1 0,1*8Website0*" 
set Website "0,1*8eXistenZ0*0,1 $arg 0,1*8Website0*" 
putserv "PRIVMSG $chan :Website set to $Website" 
} 
proc Website {nick host hand chan arg} { 
global url pathqstat cc nopub Website 
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0} 
if {$arg == ""} { 
putserv "PRIVMSG $chan :0,1*8eXistenZ0*0,1 $Website 0,1*8Website0*" 
return 0 
} 
}
my problem is when i type .website it notices me the website instead of msging the channel.. i dont see why its still doing it when its set to privmsg the channel:

Code: Select all

putserv "PRIVMSG $chan :0,1*8eXistenZ0*0,1 $Website 0,1*8Website0*" 
s
soul
Voice
Posts: 31
Joined: Fri Apr 25, 2003 6:25 pm
Location: Portugal

Re: help with a line of my code

Post by soul »

m0de wrote:

Code: Select all

putserv "PRIVMSG $chan :0,1*8eXistenZ0*0,1 $Website 0,1*8Website0*" 
use var $nopub instead of $chan

ie:

Code: Select all

putserv "PRIVMSG $nopub :0,1*8eXistenZ0*0,1 $Website 0,1*8Website0*"
m
m0de
Voice
Posts: 12
Joined: Mon Jun 09, 2003 11:33 am

Post by m0de »

thanks
Locked