Giter Club home page Giter Club logo

Comments (6)

Un1matr1x avatar Un1matr1x commented on July 20, 2024

I asked for this feature before, but i was told that the partyline-module/-code isn't that easy to change to achieve a bufferfunction

from znc.

Benares avatar Benares commented on July 20, 2024

If that's the case, adding some kind of error feedback when messaging offline users on the partyline would make it less of a blackhole.

from znc.

Efreak avatar Efreak commented on July 20, 2024

I'm rather wondering why all these issues are being referenced by Issue #94. Anyways, I would love this, either one of these solutions. I'll see if I can code an error into partyline.cpp, but I haven't been doing much coding for rather a long time, and I'm not very good at it. Another solution would be to have logged off users disappear entirely from the partyline.

Edit: try replacing lines 411-422 of partyline.cpp (starts/ends the same) with the code below. New lines are not indented. This should return a 403 numeric and a message that the user is not attached . Also, I would like to recommend that you not use the connected irc server to return the numerics, if that doesn't break rfc or clients, though I left it that way to match the other code.

           if (pUser) {
if(pUser.isUserAttached()) {
                for (vector::const_iterator i = pUser->GetNetworks().begin(); i != pUser->GetNetworks().end(); ++i) {
                    CIRCNetwork* pNetwork = *i;
                    pNetwork->PutUser(":?" + m_pUser->GetUserName() + "!" + m_pUser->GetIdent() + "@" + sHost + " " + sCmd + " " + pNetwork->GetIRCNick().GetNick() + " :" + sMessage);
                }
                for (vector::const_iterator i = pUser->GetUserClients().begin(); i != pUser->GetUserClients().end(); ++i) {
                    CClient* pClient = *i;
                    pClient->PutClient(":?" + m_pUser->GetUserName() + "!" + m_pUser->GetIdent() + "@" + sHost + " " + sCmd + " " + pClient->GetNick() + " :" + sMessage);
                }
} else {
m_pClient->PutClient(":" + GetIRCServer(m_pNetwork) + " 403 " + m_pClient->GetNick() + " " + sTarget + " :znc user: " + sNick + " is not attached.");
}
            } else {
                m_pClient->PutClient(":" + GetIRCServer(m_pNetwork) + " 403 " + m_pClient->GetNick() + " " + sTarget + " :No such znc user: " + sNick + "");
            }

from znc.

eins78 avatar eins78 commented on July 20, 2024

Can someone provide a link to an explanation why the it's not possible to log private messages (and therefore partylines)? What would have to be done to change that?

from znc.

kylef avatar kylef commented on July 20, 2024

Private messages do come through in the query buffer. If partyline messages should be buffered, where should this go? Which network of the users?

from znc.

eins78 avatar eins78 commented on July 20, 2024

I am new to ZNC so I am not shure if I understand you right. Yes, the partyline channels are on 'no network', but I dont understand why this makes a difference (i would say "just call the network 'localhost' or 'znc'" but that sounds too easy).

Basically the partyline module makes it possible to have 'internal' channels and I would like them to behave like 'normal' channels (or understand why it's not possible). The only other solution I see right now would be using an IRC server listening on localhost instead of the partyline module (which really sounds like overkill).

I just tested it again (using the version in ubuntu packages, so maybe thats an issue):

  • If I reconnect to ZNC with my client, all regular channels (ie on EFnet) > buffer playback.
  • If do the same with a 'partyline' channel > no buffer playback.

I am using the savebuff module (which does the playback?) plus the away module to catch private messages.

from znc.

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.