Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

IRC Scripting

  • 27-10-2005 11:22pm
    #1
    Closed Accounts Posts: 12,807 ✭✭✭✭


    Is there anyway to use multiple On TEXT criteria for an action?

    For example:

    "Away: €-- kickin' off! --€ I left at: €-- 11:38:28pm --€"

    I want a kick if both criteria appear "I left at" and "Away"

    I can use:

    on 1:TEXT:*I left at*:#unreal.ie { /kick $chan $nick Away messages are not wanted here }

    But that phrase can be used normally - if I add Away* to that somehow (as in must start with "Away" and contain "I left at" anywhere it'd be ok.

    Did that make any sense to anyone? :D


Comments

  • Registered Users, Registered Users 2 Posts: 18,484 ✭✭✭✭Stephen


    I know pretty much nothing about (m)IRC scripting, but I would think that it would support boolean operators (AND, OR etc).

    If that is the case you could get to kick only when "i left at" AND "away" are present. Dunno what syntax mirc script uses, but Java uses && for and and || for or.

    i.e. on 1:TEXT:*I left at* && *away*:#unreal.ie {/kick $chan $nick Away messages are not wanted here }

    Again, not knowing anything about how mirc script works, maybe it doesn't work that way :)


Advertisement