| View previous topic :: View next topic |
| Author |
Message |
hakim Voice
Joined: 23 Apr 2006 Posts: 19
|
Posted: Sat Apr 29, 2006 6:29 pm Post subject: No greet |
|
|
| 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 |
|
 |
hakim Voice
Joined: 23 Apr 2006 Posts: 19
|
Posted: Mon May 01, 2006 3:06 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon May 01, 2006 7:37 pm Post subject: |
|
|
| 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 |
|
 |
hakim Voice
Joined: 23 Apr 2006 Posts: 19
|
Posted: Tue May 02, 2006 5:21 am Post subject: |
|
|
| Thank you, Sir_Fz. |
|
| Back to top |
|
 |
|