mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-29 11:11:43 +01:00
removed extra debug msg
This commit is contained in:
parent
418c3e6b7a
commit
9d38f04bd8
@ -298,8 +298,7 @@ class EventData {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int n = 3;
|
||||
int n = 4;
|
||||
String maxN(String v) => v.length > n? v.substring(0,n) : v.substring(0, v.length);
|
||||
void printInColor(String s, String commentColor) => stdout.supportsAnsiEscapes ?stdout.write("$commentColor$s$colorEndMarker"):stdout.write(s);
|
||||
|
||||
|
@ -3,6 +3,8 @@
|
||||
String gCheckEventId = "a4479de655094679cdfb10f347521aa58f24717cdc5ddba89fb346453a8a99ed";
|
||||
|
||||
|
||||
String gRemoteAdminPubkey = "";
|
||||
|
||||
const int numWaitSeconds = 3000;
|
||||
|
||||
// global counters of total events read or processed
|
||||
|
@ -178,6 +178,11 @@ class Tree {
|
||||
return;
|
||||
}
|
||||
|
||||
// experimental
|
||||
if( newEvent.eventData.pubkey == gRemoteAdminPubkey) {
|
||||
|
||||
}
|
||||
|
||||
// expand mentions ( and translate if flag is set)
|
||||
newEvent.eventData.translateAndExpandMentions();
|
||||
|
||||
@ -467,7 +472,7 @@ class Tree {
|
||||
if( room.name.length < channelId.length) {
|
||||
continue;
|
||||
}
|
||||
print("room = ${room.name} channelId = $channelId");
|
||||
if( gDebug > 0) print("room = ${room.name} channelId = $channelId");
|
||||
if( room.name.substring(0, channelId.length) == channelId ) {
|
||||
printChannel(room);
|
||||
return key;
|
||||
|
Loading…
x
Reference in New Issue
Block a user