diff options
Diffstat (limited to 'src/message.cpp')
-rw-r--r-- | src/message.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/message.cpp b/src/message.cpp index 787071d8a..073c54d02 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -41,6 +41,7 @@ using namespace std; #include "modules.h" #include "dynamic.h" #include "wildcard.h" +#include "commands.h" #include "message.h" #include "inspstring.h" #include "dns.h" @@ -307,6 +308,10 @@ char* cmode(userrec *user, chanrec *chan) log(DEFAULT,"*** BUG *** cmode was given an invalid parameter"); return ""; } + + if (is_uline(user->server)) + return "@"; + for (int i = 0; i != MAXCHANS; i++) { if (user->chans[i].channel) @@ -344,6 +349,9 @@ int cstatus(userrec *user, chanrec *chan) return 0; } + if (is_uline(user->server)) + return STATUS_OP; + for (int i = 0; i != MAXCHANS; i++) { if (user->chans[i].channel) |