| View previous topic :: View next topic |
| Author |
Message |
krimson Halfop

Joined: 19 Apr 2006 Posts: 86
|
Posted: Wed Aug 09, 2006 4:24 pm Post subject: |
|
|
| it's true that his first post was not so clear, but still, for that matter you'd need to use $botnick instead of $nick |
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Wed Aug 09, 2006 4:59 pm Post subject: |
|
|
Thank you all for your answers.
By the way, its not a bot who types !afk, its a normal user and if that one types !afk my bot says that that user ($nick) is afk. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Aug 09, 2006 5:19 pm Post subject: |
|
|
@krimson: Ahh... very true, $nick is the desired nick, while $botnick is the actual.. keep mixing those up all the time :/ *bows before master*
@darton: Then there would be no use to make any variables global at all, go with krimson's example instead or put the checks directly inside the first proc... _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Wed Aug 09, 2006 5:27 pm Post subject: |
|
|
I have shortened the script above a little bit
So its not the $nick directly who says !afk. The bot who is $nick reproduces everything from a game, so there are people in the game who type !afk. So its [lindex [split $arg] 0] who says !afk. |
|
| Back to top |
|
 |
|