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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
hakim
Voice
Posts: 19 Joined: Sun Apr 23, 2006 3:39 am
Post
by hakim » Sat Apr 29, 2006 6:29 pm
I'm searching for a greet script with a command !nogreet, which would remember the hostmask of the user and wouldn't display the greet message to the user anymore. Would it be difficult to make such script (if not, maybe someone could write it?) or maybe someone has already made such script?
hakim
Voice
Posts: 19 Joined: Sun Apr 23, 2006 3:39 am
Post
by hakim » Mon May 01, 2006 3:06 pm
At least maybe someone could give some hints or suggestions?
At least a code which would save the hostmask of the user, who enters !nogreet ?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon May 01, 2006 7:37 pm
Code: Select all
bind join - * greetuser
bind pub - !nogreet nogreet
proc greetuser {nick uhost hand chan} {
if {![matchattr $hand B]} {
# greet user
}
}
proc nogreet {nick uhost hand chan arg} {
if {[validuser nogreet]} {
setuser nogreet HOSTS [lindex [split $arg] 0]
} {
adduser nogreet [lindex [split $arg] 0]
chattr nogreet +B
}
}
!nogreet nick!*@* adds the nick to the nogreet list.
hakim
Voice
Posts: 19 Joined: Sun Apr 23, 2006 3:39 am
Post
by hakim » Tue May 02, 2006 5:21 am
Thank you, Sir_Fz.