X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_helpop.cpp;h=b25ed7089dd79331aa95b99a014d66b9d690a027;hb=e6d000042ea75d4e0485bec9564b47163a3ca414;hp=341f2b8613a5034c5b042389dd0d849d792ce889;hpb=f2acdbc3820f0f4f5ef76a0a64e73d2a320df91f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index 341f2b861..b25ed7089 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -12,9 +12,6 @@ */ #include "inspircd.h" -#include "users.h" -#include "channels.h" -#include "modules.h" /* $ModDesc: /helpop Command, Works like Unreal helpop */ static std::map helpop_map; @@ -92,10 +89,8 @@ class cmd_helpop : public command_t irc::sepstream stream(value, '\n'); std::string token = "*"; - while ((token = stream.GetToken()) != "") - { + while (stream.GetToken(token)) user->WriteServ("NOTICE %s :%s", user->nick, token.c_str()); - } user->WriteServ("NOTICE %s :*** End of HELPOP", user->nick); }