X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sajoin.cpp;h=932b564fa5e27e31c1ff9b609637b38a6ed10c1b;hb=e55cafb93f4d98ac0a890416bf18be8e3e76affc;hp=d3c939b04219a9d8c495641cd7dc2b79c74265df;hpb=349106f3f9f75d7f957fc5d1e71ca650f4807bb9;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp index d3c939b04..932b564fa 100644 --- a/src/modules/m_sajoin.cpp +++ b/src/modules/m_sajoin.cpp @@ -30,6 +30,7 @@ class CommandSajoin : public Command public: CommandSajoin(Module* Creator) : Command(Creator,"SAJOIN", 2) { + allow_empty_last_param = false; flags_needed = 'o'; Penalty = 0; syntax = " "; TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } @@ -37,7 +38,7 @@ class CommandSajoin : public Command CmdResult Handle (const std::vector& parameters, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); - if (dest) + if ((dest) && (dest->registered == REG_ALL)) { if (ServerInstance->ULine(dest->server)) {