Code Monkey home page Code Monkey logo

Comments (9)

kaeza avatar kaeza commented on June 16, 2024

I've been thinking about removing that command. I'll accept a PR.

from irc.

ClobberXD avatar ClobberXD commented on June 16, 2024

In my opinion, !whereis is still useful for server staff... Shall I try to restrict that command to chan OPs as mentioned in my previous comment?

from irc.

kaeza avatar kaeza commented on June 16, 2024

Sure.

from irc.

sofar avatar sofar commented on June 16, 2024

definitely worth doing

from irc.

ClobberXD avatar ClobberXD commented on June 16, 2024

Figured out how to get it to work, but I'm facing a (minor?) issue:

  • irc.conn.channels[irc.config.channel] contains a table of users in the channel, called users.
  • Each user in the table is indexed by their nick (user.nick), and stores an access table, with boolean flags for user-mode +o and +v.
  • The issue here is that the user's access table users[user.nick].access is empty. Am I missing something? Do I have to invoke some sort of an update function before accessing the table?

from irc.

kaeza avatar kaeza commented on June 16, 2024

From https://github.com/JakobOvrum/LuaIRC/blob/master/doc/irc.luadoc :

Apart from nick , fields may be missing. To fill them in, enable user tracking

And

Turn user information tracking on or off. User tracking is enabled by default.
param b Boolean whether or not to track user information.
function irc:trackUsers(b)

Either that, or track modes yourself with the OnUserMode callback.

That's what I get from a quick look at the docs and code, but you should probably ask upstream.

from irc.

ClobberXD avatar ClobberXD commented on June 16, 2024

User tracking is enabled by default.

If tracking is set to true by default (and it really is enabled, I checked), then this most likely is an upstream bug.

I initially did plan on using OnUserMode callback. I'll see if that works...

from irc.

ClobberXD avatar ClobberXD commented on June 16, 2024

How about removing this command from irc altogether? Commands like these should ideally be a part of MT itself.

minetest/minetest#7677 :)

from irc.

magnetar47 avatar magnetar47 commented on June 16, 2024

I've abandoned this, and the aforementioned PR in MT has been rejected. Anyone else interested is welcome to take this up.

from irc.

Related Issues (20)

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.