heres what are my plans

i have myself
and my bot

when someone PM's my bot, bot notices ME with info
of who is NICK and text, this info goes into MY @window, and bot act as "bridge" for communication.

so all PM's that bot gets, comes to me in NOTICE (that goes in @window), then i reply with normal typing that goes as NOTICE back, which bot gets back, and sends in PM to user who PM-ed him.

but im kinda stuck.

BOT CODE:
Code:
alias author { return razor }

on *:open:?:*:{
  .set %dumbass $nick
  .notice $author PMSG %dumbass
}

on *:text:*:?:{
  .notice $author $1-
}
  


ME:
Code:
 
on ^*:notice:*:*:{
  if (botname iswm $nick) {
    .set %botnick $nick
    .window -ek %botnick
    .aline %botnick $+($timestamp,$chr(32),%botnick,:) $1-
    haltdef
  }
  else { .echo -a $timestamps $theme(notice,$nick,$1-) | halt }
}
 


but i get error for this line:
.window -ek %botnick

dunno why.. any ideas ?

Last edited by raZOR; 27/04/06 12:50 AM.