| View previous topic :: View next topic |
| Author |
Message |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Sun Jul 01, 2007 10:56 am Post subject: Op/Voice |
|
|
| Code: |
bind pub - !stats stats
proc stats {nick uhost hand chan arg} {
if {![isop $nick $chan]} { return }
putquick "PRIVMSG #ace :yes this line works cause ur an op"
} else {
if {![isvoice $nick $chan]} { return }
putquick "PRIVMSG #ace :yes this line works cause ur NOT an op"
}
}
|
any ideas why it will only work with ops ?? |
|
| Back to top |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Sun Jul 01, 2007 11:04 am Post subject: |
|
|
| nm fixed it |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Jul 01, 2007 11:07 am Post subject: |
|
|
the "return" parts stop the script
try this:
| Code: |
bind pub - !stats stats
proc stats {nick uhost hand chan arg} {
if {![isop $nick $chan]} {
putquick "PRIVMSG #ace :yes this line works cause ur an op"
} else {
if {![isvoice $nick $chan]} {
putquick "PRIVMSG #ace :yes this line works cause ur NOT an op"
}
}
|
Note: your code is set to test if people are NOT ops or voices, that's what the "!" does
so the first part tests like this: "$nick is NOT op in $chan" |
|
| Back to top |
|
 |
|