mIRC Home    About    Download    Register    News    Help

Print Thread
#247628 16/08/14 11:17 PM
Joined: Aug 2014
Posts: 1
O
Mostly harmless
OP Offline
Mostly harmless
O
Joined: Aug 2014
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
  }
}

Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
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.


Link Copied to Clipboard