another error i can't figure

new topic     » topic index » view thread      » older message » newer message

In the following code:

if equal(sign,'+') then
    if    equal('o',newmodes[1]) then on_op(nicks[1])
    elsif equal('v',newmodes[1]) then on_voice(nicks[1])
    elsif equal('b',newmodes[1]) then on_ban(nicks[1])
    end if
  end if

Why do i get this error?:

Syntax error - expected to see possibly 'end', not a function
    if    equal('o',newmodes[1]) then on_op(nicks[1])
                                          ^

Kat

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu