Hi all
I hope i can make my problem clear. here goes.
I have a bot that checks a command like !beer
When someone type that without a nickname the bor reads file a, but is a nick is added like !beer pino it should read fil b
this is what i got sofar, but it does'nt work.

Code:
 
on *:text:!beer*:#:{ set %beernick $$2
 if (%beernick == '') {
 set %beer $read(drinks.txt, s, $$1
| /msg $chan %beer  
halt } 
 set %beer $read(beernick.txt, s, $$1 }
 


help is appriciated.
Aaron


Deridio fatum