egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

No greet

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
hakim
Voice


Joined: 23 Apr 2006
Posts: 19

PostPosted: Sat Apr 29, 2006 6:29 pm    Post subject: No greet Reply with quote

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?
Back to top
View user's profile Send private message
hakim
Voice


Joined: 23 Apr 2006
Posts: 19

PostPosted: Mon May 01, 2006 3:06 pm    Post subject: Reply with quote

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 ?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon May 01, 2006 7:37 pm    Post subject: Reply with quote

Code:
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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
hakim
Voice


Joined: 23 Apr 2006
Posts: 19

PostPosted: Tue May 02, 2006 5:21 am    Post subject: Reply with quote

Thank you, Sir_Fz.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber