Well then use:
Code: Select all
putserv "NOTICE $nick :Your Notice"
To notice the user who triggered the command.
I'd just like it to notice the person that uses the command and only in that 1 channel out of 3. They use it in.
Be clear.
Well the above command will notice the person who uses that command. The notice command is private and has nothing todo with channels.
Then whats the use of saying you want it to notice that user in only that 1 channel out of 3? What is that suppose to mean?
Notices are of two types, either channel notices or private notices.
- A 'channel notice' is sent on the channel so all users in it can veiw it.
- A 'private notice' is sent to the user and has nothing todo with channels.
If you want to use that command on specific channels, meaning you want the command to trigger on specific channels then use:
Code: Select all
#### SETTINGS ###
#Set the channel for this script to work on.
set respondchan "#mychannel"
#Set the text you want to notice the user with.
set respondtext "Hello, how are you?"
### SCRIPT ###
bind pub -|- .commands commands
proc commands {nick uhost hand chan text} {
global respondchan respondtext
if {([string equal -nocase $chan $respondchan]) && ($respondtext != "")} {
putserv "NOTICE $nick :$respondtext"; return 0
}
}