Comments (9)
I've been thinking about removing that command. I'll accept a PR.
from irc.
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.
Sure.
from irc.
definitely worth doing
from irc.
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, calledusers
.- Each user in the table is indexed by their nick (
user.nick
), and stores anaccess
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.
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.
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.
How about removing this command from irc
altogether? Commands like these should ideally be a part of MT itself.
from irc.
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)
- Ability to ignore IRC users. HOT 2
- The irc.NSPass setting is not used HOT 2
- mod error HOT 3
- Running shutdown command crashes game. HOT 2
- WARNING[Server]: Deprecated use of colon notation when calling method `check_botcmd` at @irc/hooks.lua:104 HOT 2
- Username for connection HOT 3
- Passwords containing spaces HOT 1
- [Feature Request] Colored IRC nick-names to be displayed in-game HOT 2
- Getting an occasional error with the IRC module HOT 1
- `/irc_names` crashes the server HOT 1
- Chat from game to irc crashes the game. Chat from IRC to game works fine. Any ideas? HOT 1
- [Documentation Update Request] Fedora compilation
- `bad argument #1 to 'sub' (number expected, got nil)` error - fail to join channel HOT 1
- lua_api says to store the insecure environment in a local variable HOT 1
- ../init.lua:48: module 'irc' not found: HOT 1
- Ubuntu 20.04 "could not make secure connection: no protocols available" HOT 2
- irc_msg dont work in 5.5-dev HOT 1
- server patch configurable at settingstypes.txt
- IRC should override `minetest.send_join/leave_message`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irc.