mIRC Home    About    Download    Register    News    Help

Topic Options
#247628 - 17/08/14 12:17 AM quote system help
orangetj Offline
Mostly harmless

Registered: 17/08/14
Posts: 1
I am currently working on a quote system and have little to no idea what im doing.
I imagine the issue is at line 12 or 13 but im not sure
Code:
alias addquote {
  var %chan = $1 %quote = $3
  $write(quotes.txt,$chan,%quote) 
}

alias removequote {
  var %quotenumber = $2
  $write -dl $2 quotes.txt 
}

on *:text:*:#:{
  if ($regex($1-,/!addquote \[(\S+)\] \[(.+)\]/Si)) {
    $addquote # $+(!,$regml (1)) $regml(3)
  }
  elseif ($regex($1-,remove \[(\S+)\]/Si)) {
    remove # $+(!,$regml(1))
  }
  elseif ($read(quotes.txt,n,#,$1)) {
    msg # $v1
  }
}

Top
#247661 - 19/08/14 08:48 PM Re: quote system help [Re: orangetj]
Belhifet Offline
Fjord artisan

Registered: 26/06/14
Posts: 248
alias addquote {
var %chan = $1 %quote = $3
$write(quotes.txt,$chan,%quote)
}

There are potentially more issues than that, but I thought I'd point it out since I saw it.

Top