Giter Club home page Giter Club logo

nbs-irc's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nbs-irc's Issues

Channel Notice timestamp from ZNC log.

The latest update, and subsequent PM fix (:D), was really nice, but I noticed that channel notice from ZNC log is still behaving like the chat did before, with timestamps being current time on them all, and not when they were sent out.

Is this something you can look into?

Script error

  • /timer: insufficient parameters (line 4362, main.nbs),

Appears sometimes, randomly .

D_ERROR ChangeHwndIcon (Unable to Access File: nbs.ico)

  1. I downloaded nbs-irc*.zip and extracted to %appdata%\nbs-irc
  2. I created a shortcut to: "C:\Program Files (x86)\mIRC\mirc.exe" -r%appdata%\nbs-irc
  3. I launch the application and get the following error:

Imgur

To fix this error I ran SysInternals ProcMon and realised that I need to change the Start In directory in the properties of the shortcut from, to:

Imgur Imgur

Now everything is peachy!

Feature: Set parameters for query sounds.

The idea comes from the use of BNC, with *status windows going nuts, when IRC goes down, but might have a general application for people in other situations:

*Set parameter to include or exclude query sound for various nicks and/or status windows
*Set parameter to only ping X amount of times, and then shut off sound, either on specific nicks/status windows, or in general, perhaps with a combination of the two (Having a general setup, but being able to also set for specific users/status windows.)
*Set parameter with a timer, so pinging X times resets after X minutes/hours, both generally as well as with specific nicks/status windows.

/mem displays incorrect MB

[19:21:43] <H4ndy> memory usage: 1/2048 MB (48%)
[19:22:10] <Rotab> memory usage: 1/2048 MB (56%)

The percentage seems correct, but 1/2048 is not.

Auto OP/Voice list cannot be edited anymore

Stuff > Auto Op and Auto Voice entries cannot be edited anymore with mIRC address book which opens when clicking "Edit" in the Stuff menu.

Workaround: remove entries from %appdata%\nbs-irc\control.ini manually.

This was probably introduced with mIRC 7.

Alias vote - main.nbs - L1185

  1. There's a small bug when you run the /vote command and you are not connected.

Before and after fix:
image

Code:
if (!$server) { n.echo -atg info not connected | return }
Ought to be:
if (!$server) { n.echo info -atg not connected | return }

  1. If you start a vote, it'll ask for a yes/no question. If you just click the OK button it shouldn't continue with the vote, it should just return / halt.

Code:
set %vote $n.input(Enter topic (yes/no))
Ought to be:
set %vote $$n.input(Enter topic (yes/no))

Incompatibility with other scripts

I am responsible for maintaining another mIRC script, dlFilter, designed to filter out adverts and other people's triggers from file sharing channels.

nbs-irc is incompatible with this script because nbs-irc is called on every IRC message and then haltdefs and explicitly echos every message regardless of whether this is needed for specific nbs-irc functionality. dlFilter also does something similar, but only when it is needed to stop messages from being shown or to send them to a different window than mIRC's default, and this is what makes them incompatible.

When dlFilter runs first, nbs-irc does not respect that dlFilter has halted specific messages and still echos them - in this situation nbs-irc's ON events should use the "&" prefix so that they are NOT run if a previous script has halted them and should only echo them if $halted is false.

When dlFilter runs last and wants to stop a message from being displayed, it notes that the messages have been halted, but cannot stop them displaying because nbs-irc echos them directly.

I would like to recommend three changes for how nbs-irc processes messages:

  1. Make the ON events specific to the messages that you need to process to deliver specific functionality and not run on messages not needed for nbs-irc functioning. Split generic routines like ON NOTICE which then check message content into separate ON NOTICE routines for each type of content e.g. have a separate ON me:^*:notice:lag437289 *:?: rather than test with if ($nick == $me) && ($1 == lag437289) this inside a generic on ^*:notice:*:*: which runs on every channel and private notice;

  2. Only haltdef messages when necessary to hide them or redirect them to a different window. Before echoing these messages check $halted and only echo if $halted == $false; and

  3. Prefix your ON events with "&" unless you specifically need to process them (e.g. as responses to requests you have made) in order to respect haltdef of any scripts which run before. Note: This is equivalent to the existing code ìf ($halted) return` that is the first statement in many existing ON events.

I hope that by working on this together we can make our scripts compatible with one another.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.