| View previous topic :: View next topic |
| Author |
Message |
dragoneye Voice
Joined: 19 Apr 2005 Posts: 9
|
Posted: Tue Nov 28, 2006 3:30 am Post subject: little prob |
|
|
got little problemn i have this script that says anything that someone says to my bot in private to my privatechannel. the problem is that i dont want the bot say !add and !remove in my private chanel, how do i make the if {[lindex $line 0] != "!add" "!remove" } - line so that i can add more commands that the bot dont say to my private channel ? sry my bad eng and yes im a noob
| Code: |
proc priv {nick uhost hand arg} {
global privchan
set line [string trim $arg]
if {[lindex $line 0] != "!add" "!remove" } {
puthelp "PRIVMSG #$privchan :$nick on private: '$line'";return 0}
}
|
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Nov 28, 2006 4:59 am Post subject: |
|
|
I'd suggest you use "switch" for this (manpage) _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|