Code:
  else {   
if (%comwait) return
else set -u6 %comwait 1
    var %1 $remove($1,$chr(35))
    if (%1 !isnum) { 
      if (%1 == random) {
        var %n $ini(quotes.ini,#,0)
        var %rng $rand(1,%n)
        msg # $chr(35) $+ %rng $+ : $readini(quotes.ini,n,#,%rng)
      }
      else { 
        var %n $ini(quotes.ini,#,0)
        var %i 1
        while (%i <= %n) {
          var %read $readini(quotes.ini,n,#,%i)
          if ($1- isin %read) 
        }
      }
    }
    elseif (%1 isnum) { msg # $chr(35) $+ %1 $+ : $readini(quotes.ini,n,#,%1) }
  }
The code in that else condition is where it will message a channel. Whether it be specified number, specified string or random. So you'd put it right before that.

Edit: I can tell you made some changes that can break the code when checking for strings in the text. At the end of the code you have a while loop that no longer gets incremented.
Code:
        while (%i <= %n) {
          var %read $readini(quotes.ini,n,#,%i)
          if ($1- isin %read) 
        }
You might wanna fix that with the earlier code.

Last edited by Nillen; 20/08/15 09:22 PM.