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.

Main Channel Reply Instead of Notice

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
a
achilles1900
Voice
Posts: 30
Joined: Mon Apr 21, 2008 5:40 am

Main Channel Reply Instead of Notice

Post by achilles1900 »

Hi,

Im running TxTGreet 1.0 by darles.

When users request to see their greets, the bot replies in 'notice' instead of in the main channel where I want it to display. Can anyone do a slight tweak on this? Thanks in advance :D

Script section follows:

}
proc mygreet {nick uhost hand chan arg} {
global patch yourgreet
if {[file exist /$patch/$nick.txt]} {
set file6 [open /$patch/$nick.txt r]
gets $file6 text
close $file6
putserv "NOTICE $nick :$yourgreet: \[$nick\] $text"
}
d
doggo
Halfop
Posts: 97
Joined: Tue Jan 05, 2010 7:53 am
Contact:

Re: Main Channel Reply Instead of Notice

Post by doggo »

achilles1900 wrote:Hi,


Script section follows:

}
proc mygreet {nick uhost hand chan arg} {
global patch yourgreet
if {[file exist /$patch/$nick.txt]} {
set file6 [open /$patch/$nick.txt r]
gets $file6 text
close $file6
putserv "NOTICE $nick :$yourgreet: \[$nick\] $text"
}

make changes to the following line

Code: Select all

  putserv "NOTICE $nick :$yourgreet: \[$nick\] $text"
change to

Code: Select all

 putserv "PRIVMSG $chan :$yourgreet: \[$nick\] $text"
then rehash and try :)
Post Reply